Refactor to support bootable installers

This commit is contained in:
Nindi Gill 2023-06-13 16:57:15 +10:00
parent ad6f48eae5
commit d2fb207499
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
28 changed files with 971 additions and 565 deletions

View file

@ -14,18 +14,18 @@ struct MistApp: App {
var appDelegate: AppDelegate
@StateObject var sparkleUpdater: SparkleUpdater = SparkleUpdater()
@State private var refreshing: Bool = false
@State private var downloadInProgress: Bool = false
@State private var tasksInProgress: Bool = false
var body: some Scene {
WindowGroup {
ContentView(refreshing: $refreshing, downloadInProgress: $downloadInProgress)
ContentView(refreshing: $refreshing, tasksInProgress: $tasksInProgress)
.onReceive(NotificationCenter.default.publisher(for: NSApplication.willUpdateNotification)) { _ in
hideZoomButton()
}
}
.fixedWindow()
.commands {
AppCommands(sparkleUpdater: sparkleUpdater, refreshing: $refreshing, downloadInProgress: $downloadInProgress)
AppCommands(sparkleUpdater: sparkleUpdater, refreshing: $refreshing, tasksInProgress: $tasksInProgress)
}
Settings {
SettingsView(sparkleUpdater: sparkleUpdater)