Make sure qtabwidget in account settings is unnoticeable when file provider module is disabled

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-08-23 18:51:33 +08:00
parent 5af363ad9c
commit c57a5820d0
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -193,6 +193,15 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent)
#endif
new ToolTipUpdater(_ui->_folderList);
#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();
#endif
const auto mouseCursorChanger = new MouseCursorChanger(this);
mouseCursorChanger->folderList = _ui->_folderList;
mouseCursorChanger->model = _model;