Always show Settings in the context menu (amends #2164)
authorMichael Schuster <michael@schuster.ms>
Fri, 31 Jul 2020 22:17:25 +0000 (00:17 +0200)
committerKevin Ottens <ervin@ipsquad.net>
Mon, 3 Aug 2020 08:10:05 +0000 (10:10 +0200)
The context menu should allow access to the Settings even when no accounts are configured.

Users may specify proxy / startup / update and other settings at any time.

This slipped through in #2164.

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/systray.cpp

index 07f8e3353446c9ec6d03ae120355ecdda98d02da..f8c827c5b39f835a7c38354edcce3051c775c634 100644 (file)
@@ -86,8 +86,8 @@ Systray::Systray()
         contextMenu->addAction(tr("Add account"), this, &Systray::openAccountWizard);
     } else {
         contextMenu->addAction(tr("Open main dialog"), this, &Systray::openMainDialog);
-        contextMenu->addAction(tr("Settings"), this, &Systray::openSettings);
     }
+    contextMenu->addAction(tr("Settings"), this, &Systray::openSettings);
     contextMenu->addAction(tr("Exit %1").arg(Theme::instance()->appNameGUI()), this, &Systray::shutdown);
     setContextMenu(contextMenu);
 #endif