mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-26 14:25:45 +03:00
Merge pull request #2708 from nextcloud/fix_new_account_wizard_open
Have the new account wizard open again
This commit is contained in:
commit
2415d9525b
3 changed files with 2 additions and 15 deletions
|
@ -214,9 +214,6 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent)
|
|||
_ui->encryptionMessage->hide();
|
||||
}
|
||||
|
||||
connect(UserModel::instance(), &UserModel::addAccount,
|
||||
this, &AccountSettings::slotOpenAccountWizard);
|
||||
|
||||
customizeStyle();
|
||||
}
|
||||
|
||||
|
@ -251,17 +248,6 @@ QString AccountSettings::selectedFolderAlias() const
|
|||
return _model->data(selected, FolderStatusDelegate::FolderAliasRole).toString();
|
||||
}
|
||||
|
||||
void AccountSettings::slotOpenAccountWizard()
|
||||
{
|
||||
// We can't call isSystemTrayAvailable with appmenu-qt5 because it breaks the systemtray
|
||||
// (issue #4693, #4944)
|
||||
if (qgetenv("QT_QPA_PLATFORMTHEME") == "appmenu-qt5" || QSystemTrayIcon::isSystemTrayAvailable()) {
|
||||
topLevelWidget()->close();
|
||||
}
|
||||
|
||||
OwncloudSetupWizard::runWizard(qApp, SLOT(slotownCloudWizardDone(int)), nullptr);
|
||||
}
|
||||
|
||||
void AccountSettings::slotToggleSignInState()
|
||||
{
|
||||
if (_accountState->isSignedOut()) {
|
||||
|
|
|
@ -89,7 +89,6 @@ protected slots:
|
|||
void slotFolderWizardRejected();
|
||||
void slotDeleteAccount();
|
||||
void slotToggleSignInState();
|
||||
void slotOpenAccountWizard();
|
||||
void refreshSelectiveSyncStatus();
|
||||
void slotMarkSubfolderEncrypted(const FolderStatusModel::SubFolderInfo* folderInfo);
|
||||
void slotSubfolderContextMenuRequested(const QModelIndex& idx, const QPoint& point);
|
||||
|
|
|
@ -119,6 +119,8 @@ Systray::Systray()
|
|||
|
||||
connect(UserModel::instance(), &UserModel::newUserSelected,
|
||||
this, &Systray::slotNewUserSelected);
|
||||
connect(UserModel::instance(), &UserModel::addAccount,
|
||||
this, &Systray::openAccountWizard);
|
||||
|
||||
connect(AccountManager::instance(), &AccountManager::accountAdded,
|
||||
this, &Systray::showWindow);
|
||||
|
|
Loading…
Reference in a new issue