From 2086e4c7d177352ebabb7c221a9387d38d340b24 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sun, 3 Mar 2024 12:28:05 +0200 Subject: [PATCH] Fix macOS crash on Accent Color change --- src/gui/osutils/macutils/AppKitImpl.mm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/gui/osutils/macutils/AppKitImpl.mm b/src/gui/osutils/macutils/AppKitImpl.mm index fbf4a9d0e..439cf18d4 100644 --- a/src/gui/osutils/macutils/AppKitImpl.mm +++ b/src/gui/osutils/macutils/AppKitImpl.mm @@ -1,6 +1,6 @@ /* + * Copyright (C) 2024 KeePassXC Team * Copyright (C) 2016 Lennart Glauer - * Copyright (C) 2017 KeePassXC Team * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,14 +39,6 @@ object:nil]; [NSApp addObserver:self forKeyPath:@"effectiveAppearance" options:NSKeyValueObservingOptionNew context:nil]; - - // Unfortunately, there is no notification for a wallpaper change, which affects - // the status bar colour on macOS Big Sur, but we can at least subscribe to this. - [[NSDistributedNotificationCenter defaultCenter] addObserver:self - selector:@selector(interfaceThemeChanged:) - name:@"AppleColorPreferencesChangedNotification" - object:nil]; - } return self; }