included Sparkle
This commit is contained in:
@@ -12,6 +12,8 @@ import AppKit
|
||||
|
||||
@main
|
||||
struct iKeyMonApp: App {
|
||||
@StateObject private var updateViewModel = UpdateViewModel()
|
||||
|
||||
init() {
|
||||
#if os(macOS)
|
||||
if let customIcon = NSImage(named: "AppIcon") {
|
||||
@@ -23,6 +25,7 @@ struct iKeyMonApp: App {
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
MainView()
|
||||
.environmentObject(updateViewModel)
|
||||
.onDisappear {
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
@@ -32,6 +35,7 @@ struct iKeyMonApp: App {
|
||||
Settings {
|
||||
PreferencesView()
|
||||
.padding()
|
||||
.environmentObject(updateViewModel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user