Skip to content

Commit 368123f

Browse files
committed
fix: clear updates cache on app start and when About tab appears
1 parent cc1ef6f commit 368123f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Pareto/ParetoApp.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ class AppDelegate: AppHandlers, NSApplicationDelegate {
165165
}
166166
#endif
167167

168+
// Clear the updates cache on app start
169+
UpdateService.shared.clearCache()
170+
168171
// Terminate any older versions of process if not running tests
169172
#if !DEBUG
170173
if !AppInfo.isRunningTests {

Pareto/Views/Settings/AboutSettingsView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ struct AboutSettingsView: View {
116116
}
117117
}
118118
.onAppear {
119+
// Clear the updates cache when About tab appears
120+
UpdateService.shared.clearCache()
119121
fetch()
120122
if showBeta {
121123
fetchHelperVersion()

0 commit comments

Comments
 (0)