Skip to content

Commit 4c3e369

Browse files
authored
Merge pull request #10193 from nextcloud/i2h3/competent-goldstine-bf0022
fix(#10177): Unblock menu bar extra
2 parents c866329 + bc531a3 commit 4c3e369

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/gui/owncloudgui.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,13 @@ void ownCloudGui::slotTrayClicked(QSystemTrayIcon::ActivationReason reason)
233233
if (reason == QSystemTrayIcon::DoubleClick && currentUser && currentUser->hasLocalFolder()) {
234234
currentUser->openLocalFolder();
235235
} else if (reason == QSystemTrayIcon::Trigger) {
236-
if (OwncloudSetupWizard::bringWizardToFrontIfVisible()) {
237-
// brought wizard to front
238-
} else if (AccountManager::instance()->accounts().isEmpty()) {
239-
slotNewAccountWizard();
236+
if (AccountManager::instance()->accounts().isEmpty()) {
237+
// Without a configured account the tray icon drives the setup wizard
238+
// directly: open it, or bring the existing one back to front instead
239+
// of opening a second wizard.
240+
if (!OwncloudSetupWizard::bringWizardToFrontIfVisible()) {
241+
slotNewAccountWizard();
242+
}
240243
} else if (_tray->raiseDialogs()) {
241244
// Brings dialogs hidden by other apps to front, returns true if any raised
242245
} else if (_tray->isOpen()) {

0 commit comments

Comments
 (0)