From e30273335557452a18600d156528d8b773aff0fc Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Wed, 20 Apr 2022 07:09:16 -0400 Subject: [PATCH] Use wipe(). --- Clocker/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Clocker/AppDelegate.swift b/Clocker/AppDelegate.swift index 778248f..446f405 100644 --- a/Clocker/AppDelegate.swift +++ b/Clocker/AppDelegate.swift @@ -73,9 +73,9 @@ open class AppDelegate: NSObject, NSApplicationDelegate { } @objc private func openPreferencesWindow() { - let displayMode = UserDefaults.standard.integer(forKey: CLShowAppInForeground) + let displayMode = DataStore.shared().shouldDisplay(.showAppInForeground) - if displayMode == 1 { + if displayMode { let floatingWindow = FloatingWindowController.shared() floatingWindow.openPreferences(NSButton()) } else {