Made the estimated time only appear in the systray when the sync has actual size.

This commit is contained in:
Eran 2014-04-29 02:43:35 +03:00
parent a892b79dba
commit 35b3ddd61f

View file

@ -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())) );
_actionRecent->setIcon( QIcon() ); // Fixme: Set a "in-progress"-item eventually.
if (!progress._lastCompletedItem.isEmpty()) {