From c644f5d4a3cee11cb535237d066bd16bfb1b57c3 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Fri, 18 Sep 2020 14:09:18 -0700 Subject: [PATCH] Better param name. --- Brief/Updater.swift | 4 ++-- SecretAgent/AppDelegate.swift | 2 +- Secretive/App.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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