mirror of
https://github.com/yattee/yattee.git
synced 2026-06-07 15:24:21 +00:00
Enable app icon selection on macOS
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user