diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index cd8fd7640..588042761 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -196,10 +196,7 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent) #if defined(BUILD_FILE_PROVIDER_MODULE) #else - // Ensure all elements of the tab widget are hidden. - // Document mode lets the child view take up the whole view. - _ui->tabWidget->setDocumentMode(true); - _ui->tabWidget->tabBar()->hide(); + disguiseTabWidget(); #endif const auto mouseCursorChanger = new MouseCursorChanger(this); @@ -1697,6 +1694,14 @@ void AccountSettings::initializeE2eEncryptionSettingsMessage() connect(actionEnableE2e, &QAction::triggered, this, &AccountSettings::slotE2eEncryptionGenerateKeys); } +void AccountSettings::disguiseTabWidget() const +{ + // Ensure all elements of the tab widget are hidden. + // Document mode lets the child view take up the whole view. + _ui->tabWidget->setDocumentMode(true); + _ui->tabWidget->tabBar()->hide(); +} + } // namespace OCC #include "accountsettings.moc" diff --git a/src/gui/accountsettings.h b/src/gui/accountsettings.h index 1ddbc097d..3ddbc59e0 100644 --- a/src/gui/accountsettings.h +++ b/src/gui/accountsettings.h @@ -137,6 +137,8 @@ private: /// Returns the alias of the selected folder, empty string if none [[nodiscard]] QString selectedFolderAlias() const; + void disguiseTabWidget() const; + Ui::AccountSettings *_ui; FolderStatusModel *_model;