Skip to content

Commit a88efaa

Browse files
committed
v1.9
1 parent fb22e1b commit a88efaa

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

Sentinel.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Sentinel/About Window/AboutCommand.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ struct AboutCommand: Commands {
1919
}
2020

2121
Button {
22-
//updater.checkForUpdatesForce(showSheet: true)
23-
updater.checkForUpdates(sheet: true, force: true)
22+
updater.checkForUpdates(sheet: true, force: false)
2423
} label: {
2524
Text("Check for Updates")
2625
}

Sentinel/SentinelApp.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ struct SentinelApp: App {
77
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
88
@StateObject var appState = AppState()
99
@StateObject private var updater = Updater(owner: "alienator88", repo: "Sentinel")
10-
@StateObject private var themeManager = ThemeManager.shared
1110

1211
var body: some Scene {
1312
WindowGroup {
@@ -16,11 +15,9 @@ struct SentinelApp: App {
1615
.environmentObject(appState)
1716
.environmentObject(updater)
1817
}
19-
//.sheet(isPresented: $updater.showSheet, content: {
2018
.sheet(isPresented: $updater.sheet, content: {
21-
/// This will show the update sheet based on the frequency check function only
19+
/// This will show the update sheet based on the frequency check function
2220
updater.getUpdateView()
23-
.environmentObject(themeManager)
2421
})
2522
}
2623
.commands {

Sentinel/Updater/UpdateSettingsView.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ struct UpdateSettingsTab: View {
3030
HStack(alignment: .center, spacing: 20) {
3131

3232
Button(""){
33-
//updater.checkForUpdatesForce(showSheet: false)
34-
updater.checkForUpdates(sheet: true, force: true)
33+
updater.checkForUpdates(sheet: false, force: false)
3534
}
3635
.buttonStyle(SimpleButtonStyle(icon: "list.bullet.rectangle.portrait", label: "Refresh", help: "Refresh updater", color: .primary))
3736

37+
Button(""){
38+
updater.checkForUpdates(sheet: true, force: true)
39+
}
40+
.buttonStyle(SimpleButtonStyle(icon: "arrow.counterclockwise", label: "Force Update", help: "Force update even if version is the same", color: .primary))
41+
3842

3943
// Button(""){
4044
// updater.resetAnnouncementAlert()

0 commit comments

Comments
 (0)