diff --git a/Brief/Updater.swift b/Brief/Updater.swift index 9153084..ef28385 100644 --- a/Brief/Updater.swift +++ b/Brief/Updater.swift @@ -11,8 +11,8 @@ public class Updater: ObservableObject, UpdaterProtocol { @Published public var update: Release? - public init(hasRunSetup: Bool) { - if hasRunSetup { + public init(checkOnLaunch: Bool) { + if checkOnLaunch { // Don't do a launch check if the user hasn't seen the setup prompt explaining updater yet. checkForUpdates() } diff --git a/SecretAgent/AppDelegate.swift b/SecretAgent/AppDelegate.swift index 305aa76..d54210c 100644 --- a/SecretAgent/AppDelegate.swift +++ b/SecretAgent/AppDelegate.swift @@ -14,7 +14,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { list.add(store: SmartCard.Store()) return list }() - private let updater = Updater(hasRunSetup: false) + private let updater = Updater(checkOnLaunch: false) private let notifier = Notifier() private lazy var agent: Agent = { Agent(storeList: storeList, witness: notifier) diff --git a/Secretive/App.swift b/Secretive/App.swift index 6489335..be31442 100644 --- a/Secretive/App.swift +++ b/Secretive/App.swift @@ -23,7 +23,7 @@ struct AppDelegate: App { WindowGroup { ContentView(showingCreation: $showingCreation, runningSetup: $showingSetup) .environmentObject(storeList) - .environmentObject(Updater(hasRunSetup: hasRunSetup)) + .environmentObject(Updater(checkOnLaunch: hasRunSetup)) .environmentObject(agentStatusChecker) .sheet(isPresented: $showingSetup) { SetupView { completed in