fix: apply dock icon preference at launch
This commit is contained in:
parent
fbf5333b39
commit
b88b18df93
1 changed files with 5 additions and 1 deletions
|
|
@ -731,8 +731,8 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSXPCListenerDelegate
|
|||
|
||||
@MainActor
|
||||
func applicationDidFinishLaunching(_ notification: Notification) {
|
||||
NSApp.setActivationPolicy(.accessory)
|
||||
state = AppStateStore.shared
|
||||
AppActivationPolicy.apply(showDockIcon: state?.showDockIcon ?? false)
|
||||
LaunchdManager.startClawdis()
|
||||
startListener()
|
||||
scheduleFirstRunOnboardingIfNeeded()
|
||||
|
|
@ -1624,6 +1624,10 @@ struct GeneralSettings: View {
|
|||
subtitle: "Automatically start Clawdis after you sign in.",
|
||||
binding: $state.launchAtLogin)
|
||||
|
||||
SettingsToggleRow(title: "Show Dock icon",
|
||||
subtitle: "Keep Clawdis visible in the Dock instead of menu-bar-only mode.",
|
||||
binding: $state.showDockIcon)
|
||||
|
||||
SettingsToggleRow(title: "Enable debug tools",
|
||||
subtitle: "Show the Debug tab with development utilities.",
|
||||
binding: $state.debugPaneEnabled)
|
||||
|
|
|
|||
Loading…
Reference in a new issue