Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila San <hello@camila.codes>2018-07-07 18:16:03 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-30 23:06:01 +0300
commitf0ca5dbded80f2d697dc04165a24036300057a8d (patch)
tree77a8f6105c9fe242f6ca84e8f7cd0912189ec9c3 /src/gui/settingsdialog.cpp
parent11484d5588fee8fdbfe5cfe753b58832e6465f67 (diff)
Fix settings dialog for mac.
- Fixes adding/removing accounts with separator in the toolbar - accounts were not added in the right order and removing was not including the separator. - Fixes button sizes in the activities list - the buttons were too small for the text. Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src/gui/settingsdialog.cpp')
-rw-r--r--src/gui/settingsdialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 8f1a9707e..89439d239 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -100,7 +100,7 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
_actionBefore = new QAction;
_toolBar->addAction(_actionBefore);
- // Adds space
+ // Adds space between users + activities and general + network actions
QWidget* spacer = new QWidget();
spacer->setMinimumWidth(10);
spacer->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
@@ -217,6 +217,8 @@ void SettingsDialog::accountAdded(AccountState *s)
bool brandingSingleAccount = !Theme::instance()->multiAccount();
_activitySettings[s] = new ActivitySettings(s, this);
+
+ // if this is not the first account, then before we continue to add more accounts we add a separator
if(AccountManager::instance()->accounts().first().data() != s &&
AccountManager::instance()->accounts().size() >= 1){
_actionGroupWidgets.insert(_toolBar->insertSeparator(_actionBefore), _activitySettings[s]);
@@ -330,6 +332,7 @@ void SettingsDialog::accountRemoved(AccountState *s)
if(_activitySettings.contains(s)){
_activitySettings[s]->slotRemoveAccount();
_activitySettings[s]->hide();
+
// get the settings widget and the separator
foreach(QAction *action, _actionGroupWidgets.keys(_activitySettings[s])){
_actionGroupWidgets.remove(action);