| | |
| | | static let showDockIcon = true |
| | | static let launchAtLogin = true |
| | | static let showUncommonAppBubbles = false |
| | | static let useAppKitTagNavigation = true |
| | | |
| | | static func register() { |
| | | UserDefaults.standard.register(defaults: [ |
| | |
| | | "showDockIcon": showDockIcon, |
| | | "launchAtLogin": launchAtLogin, |
| | | "showUncommonAppBubbles": showUncommonAppBubbles, |
| | | "useAppKitTagNavigation": useAppKitTagNavigation, |
| | | "skipTagRemovalDropConfirm": false, |
| | | LauncherHotkeyRegistrationStore.mainStateKey: LauncherHotkeyRegistrationState.active.rawValue, |
| | | LauncherHotkeyRegistrationStore.quickSearchStateKey: LauncherHotkeyRegistrationState.active.rawValue |
| | | ]) |
| | |
| | | } |
| | | |
| | | static func hasStoredValue(for key: String) -> Bool { |
| | | let domain = Bundle.main.bundleIdentifier ?? "com.apptag.launcher" |
| | | let domain = Bundle.main.bundleIdentifier ?? AppIdentity.bundleIdentifier |
| | | return UserDefaults.standard.persistentDomain(forName: domain)?[key] != nil |
| | | } |
| | | |