mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-25 12:34:58 -04:00
Refactor to support bootable installers
This commit is contained in:
parent
ad6f48eae5
commit
d2fb207499
28 changed files with 971 additions and 565 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue