[Pkg-owncloud-commits] [owncloud-client] 05/332: Made the estimated time only appear in the systray when the sync has actual size.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:06:31 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 35b3ddd61f9afb052aa03497d1e287db83aff33e
Author: Eran <etherpulse at gmail.com>
Date:   Tue Apr 29 02:43:35 2014 +0300

    Made the estimated time only appear in the systray when the sync has actual size.
---
 src/mirall/owncloudgui.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mirall/owncloudgui.cpp b/src/mirall/owncloudgui.cpp
index 61e597e..28a17fa 100644
--- a/src/mirall/owncloudgui.cpp
+++ b/src/mirall/owncloudgui.cpp
@@ -414,10 +414,11 @@ void ownCloudGui::slotUpdateProgress(const QString &folder, const Progress::Info
     _actionStatus->setText( tr("Syncing %1 of %2 (%3 of %4)")
         .arg(currentFile).arg(progress._totalFileCount).arg(s1, s2));
     
-    _actionEstimate->setVisible(true);
+    _actionEstimate->setVisible(progress.completedSize() > 0);
     _actionEstimate->setText( tr("ETA : %5 , %6/s").arg( Utility::timeConversion(progress.totalEstimate().getEtaEstimate()),
-              Utility::octetsToString(progress.totalEstimate().getEstimatedBandwidth())) );
- 
+                                                             Utility::octetsToString(progress.totalEstimate().getEstimatedBandwidth())) );
+
+
     _actionRecent->setIcon( QIcon() ); // Fixme: Set a "in-progress"-item eventually.
 
     if (!progress._lastCompletedItem.isEmpty()) {

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