Enable app icon selection on macOS

This commit is contained in:
Arkadiusz Fal
2026-04-20 21:21:18 +02:00
parent b0f9bb2229
commit d2b6a158db
5 changed files with 53 additions and 10 deletions

View File

@@ -78,6 +78,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
LoggingService.shared.logCloudKit("Requesting remote notification registration...")
NSApplication.shared.registerForRemoteNotifications()
if let rawValue = UserDefaults.standard.string(forKey: "appIcon"),
let icon = AppIcon(rawValue: rawValue) {
SettingsManager.applyMacAppIcon(icon)
}
}
func application(_ application: NSApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {