mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Remove empty action in the settings toolbar
This was causing an unwanted line in the middle of the bar. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
d63097475c
commit
f45e84f2ee
2 changed files with 1 additions and 5 deletions
|
@ -112,9 +112,6 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
|
|||
_actionGroup->setExclusive(true);
|
||||
connect(_actionGroup, &QActionGroup::triggered, this, &SettingsDialog::slotSwitchPage);
|
||||
|
||||
_actionBefore = new QAction(this);
|
||||
_toolBar->addAction(_actionBefore);
|
||||
|
||||
// Adds space between users + activities and general + network actions
|
||||
auto *spacer = new QWidget();
|
||||
spacer->setMinimumWidth(10);
|
||||
|
@ -252,7 +249,7 @@ void SettingsDialog::accountAdded(AccountState *s)
|
|||
accountAction->setIconText(shortDisplayNameForSettings(s->account().data(), height * buttonSizeRatio));
|
||||
}
|
||||
|
||||
_toolBar->insertAction(_actionBefore, accountAction);
|
||||
_toolBar->insertAction(_toolBar->actions().at(0), accountAction);
|
||||
auto accountSettings = new AccountSettings(s, this);
|
||||
QString objectName = QLatin1String("accountSettings_");
|
||||
objectName += s->account()->displayName();
|
||||
|
|
|
@ -82,7 +82,6 @@ private:
|
|||
Ui::SettingsDialog *const _ui;
|
||||
|
||||
QActionGroup *_actionGroup;
|
||||
QAction *_actionBefore;
|
||||
// Maps the actions from the action group to the corresponding widgets
|
||||
QHash<QAction *, QWidget *> _actionGroupWidgets;
|
||||
|
||||
|
|
Loading…
Reference in a new issue