[Pkg-owncloud-commits] [owncloud-client] 77/115: Status icons: Set the offline icon at the very beginning.

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Aug 29 22:04:03 UTC 2014


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 dc0a054d9420f31cb325c683347e64758d093ebe
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Aug 19 14:09:53 2014 +0200

    Status icons: Set the offline icon at the very beginning.
    
    Otherwise, if the account is signed out and opens the credential popup,
    there is a wrong icon displayed. If the account is coming from keychain
    this icon is quickly overwritten.
---
 src/mirall/owncloudgui.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mirall/owncloudgui.cpp b/src/mirall/owncloudgui.cpp
index 9af0369..0fc9ff6 100644
--- a/src/mirall/owncloudgui.cpp
+++ b/src/mirall/owncloudgui.cpp
@@ -54,7 +54,9 @@ ownCloudGui::ownCloudGui(Application *parent) :
 {
     _tray = new Systray();
     _tray->setParent(this);
-    _tray->setIcon( Theme::instance()->syncStateIcon( SyncResult::NotYetStarted, true ) );
+
+    // for the beginning, set the offline icon until the account was verified
+    _tray->setIcon( Theme::instance()->folderOfflineIcon(true));
 
     connect(_tray.data(), SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
             SLOT(slotTrayClicked(QSystemTrayIcon::ActivationReason)));

-- 
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