fix: apply dock icon preference at launch
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user