From: Claudio Cambra Date: Thu, 29 Sep 2022 18:01:35 +0000 (+0200) Subject: Don't set up tray context menu on macOS, even if not building app bundle X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~236^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a1dbcf2fed930d5edd05f86bce81a373d6d6d7f;p=nextcloud-desktop.git Don't set up tray context menu on macOS, even if not building app bundle Signed-off-by: Claudio Cambra --- diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 238406474..ee5200038 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -78,7 +78,7 @@ Systray::Systray() setUserNotificationCenterDelegate(); checkNotificationAuth(MacNotificationAuthorizationOptions::Default); // No provisional auth, ask user explicitly first time registerNotificationCategories(QString(tr("Download"))); -#else +#elif !defined(Q_OS_MACOS) connect(AccountManager::instance(), &AccountManager::accountAdded, this, &Systray::setupContextMenu); connect(AccountManager::instance(), &AccountManager::accountRemoved,