diff options
author | Stephan Beyer <s-beyer@gmx.net> | 2020-07-07 00:17:33 +0300 |
---|---|---|
committer | Kevin Ottens <ervin@ipsquad.net> | 2020-07-23 22:08:53 +0300 |
commit | cd008ffe59c08014ccb3b8fff8f364c508e8bc7c (patch) | |
tree | aed63dfac5198eac1cca130c92d6cad498d19926 /src/gui/owncloudgui.cpp | |
parent | 3fd32e55f99bf3e9190e77778c410624ec4555cc (diff) |
Let context menu open wizard if there are no accounts
The context menu offers to open the main dialog and the settings
even if no accounts are configured. In this case, the main dialog
is useless and the settings are probably confusing. Hence, this
commit replaces these actions in the context menu by an action
to open the wizard (which also opens on left click, so this is
the most natural thing to do).
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Diffstat (limited to 'src/gui/owncloudgui.cpp')
-rw-r--r-- | src/gui/owncloudgui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index 22876641d..825844fcb 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -85,6 +85,9 @@ ownCloudGui::ownCloudGui(Application *parent) connect(_tray.data(), &Systray::openHelp, this, &ownCloudGui::slotHelp); + connect(_tray.data(), &Systray::openAccountWizard, + this, &ownCloudGui::slotNewAccountWizard); + connect(_tray.data(), &Systray::openMainDialog, this, &ownCloudGui::slotOpenMainDialog); |