mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Show deletes in progress.
This commit is contained in:
parent
4ce92f1a98
commit
16d81db117
5 changed files with 16 additions and 2 deletions
|
@ -530,7 +530,6 @@ void AccountSettings::slotSetProgress(const QString& folder, const Progress::Inf
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
QString itemFileName = shortenFilename(folder, progress.current_file);
|
||||
QString syncFileProgressString;
|
||||
|
||||
|
@ -546,6 +545,7 @@ void AccountSettings::slotSetProgress(const QString& folder, const Progress::Inf
|
|||
break;
|
||||
case Progress::StartDownload:
|
||||
case Progress::StartUpload:
|
||||
case Progress::StartDelete:
|
||||
syncFileProgressString = tr("Start");
|
||||
if( _hideProgressTimers.contains(item) ) {
|
||||
// The timer is still running.
|
||||
|
|
|
@ -434,6 +434,12 @@ Progress::Kind CSyncThread::csyncToProgressKind( enum csync_notify_type_e kind )
|
|||
case CSYNC_NOTIFY_FINISHED_SYNC_SEQUENCE:
|
||||
pKind = Progress::EndSync;
|
||||
break;
|
||||
case CSYNC_NOTIFY_START_DELETE:
|
||||
pKind = Progress::StartDelete;
|
||||
break;
|
||||
case CSYNC_NOTIFY_END_DELETE:
|
||||
pKind = Progress::EndDelete;
|
||||
break;
|
||||
case CSYNC_NOTIFY_ERROR:
|
||||
pKind = Progress::Error;
|
||||
break;
|
||||
|
|
|
@ -238,7 +238,7 @@ void ItemProgressDialog::slotProgressInfo( const QString& folder, const Progress
|
|||
}
|
||||
|
||||
// Ingore other events than finishing an individual up- or download.
|
||||
if( !(progress.kind == Progress::EndDownload || progress.kind == Progress::EndUpload)) {
|
||||
if( !(progress.kind == Progress::EndDownload || progress.kind == Progress::EndUpload || progress.kind == Progress::EndDelete)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -57,6 +57,12 @@ QString Progress::asString( Kind kind )
|
|||
case EndSync:
|
||||
re = QObject::tr("finished");
|
||||
break;
|
||||
case StartDelete:
|
||||
re = QObject::tr("start delete");
|
||||
break;
|
||||
case EndDelete:
|
||||
re = QObject::tr("deleted");
|
||||
break;
|
||||
default:
|
||||
Q_ASSERT(false);
|
||||
}
|
||||
|
|
|
@ -40,6 +40,8 @@ public:
|
|||
EndDownload,
|
||||
EndUpload,
|
||||
EndSync,
|
||||
StartDelete,
|
||||
EndDelete,
|
||||
Error
|
||||
} Kind;
|
||||
|
||||
|
|
Loading…
Reference in a new issue