mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
FileItemDialog: more clarity in the label
- finished %n sec ago -> last finished %n sec ago - switch to minutes after 60 seconds
This commit is contained in:
parent
bb5cf37330
commit
d323ec5dd9
1 changed files with 4 additions and 1 deletions
|
@ -123,7 +123,10 @@ void FileItemDialog::slotSetFolderMessage()
|
|||
QDateTime now = QDateTime::currentDateTime();
|
||||
int secs = _lastSyncTime.secsTo(now);
|
||||
|
||||
_timelabel->setText(tr("%1 (finished %n sec. ago)", "", secs).arg(_folderMessage));
|
||||
if (secs < 60)
|
||||
_timelabel->setText(tr("%1 (last finished %n sec. ago)", "", secs).arg(_folderMessage));
|
||||
else
|
||||
_timelabel->setText(tr("%1 (last finished %n min. ago)", "", secs/60).arg(_folderMessage));
|
||||
}
|
||||
|
||||
void FileItemDialog::copyToClipboard()
|
||||
|
|
Loading…
Reference in a new issue