[Pkg-owncloud-commits] [owncloud-client] 404/484: SelectiveSync: Show Apply/Cancel less

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 7e564083317e54362cdd8a1b9245863f35352e5c
Author: Christian Kamm <mail at ckamm.de>
Date:   Tue Nov 24 13:00:05 2015 +0100

    SelectiveSync: Show Apply/Cancel less
    
    Before the selective sync status text and apply/cancel buttons
    were shown as soon as any folder was expanded. This changes it
    to only show when the model is dirty (or a big folder confirmation
    is needed).
    
    This is nice because we auto-open the folder list sometimes
    and having the apply/cancel buttons visible makes users think a
    decision is needed.
---
 src/gui/accountsettings.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 2bb7206..3abb78b 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -606,12 +606,6 @@ AccountSettings::~AccountSettings()
 void AccountSettings::refreshSelectiveSyncStatus()
 {
     bool shouldBeVisible = _model->isDirty();
-    for (int i = 0; !shouldBeVisible && i < _model->rowCount(); ++i) {
-        auto index = _model->index(i);
-        if (ui->_folderList->isExpanded(index) && _model->rowCount(index) > 0) {
-            shouldBeVisible = true;
-        }
-    }
 
     QString msg;
     int cnt = 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list