mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-02-15 16:51:39 +00:00
Use different message for direct delete success, close #904
This commit is contained in:
13
core/app.py
13
core/app.py
@@ -308,11 +308,14 @@ class DupeGuru(Broadcaster):
|
|||||||
self.problem_dialog.refresh()
|
self.problem_dialog.refresh()
|
||||||
self.view.show_problem_dialog()
|
self.view.show_problem_dialog()
|
||||||
else:
|
else:
|
||||||
msg = {
|
if jobid == JobType.COPY:
|
||||||
JobType.COPY: tr("All marked files were copied successfully."),
|
msg = tr("All marked files were copied successfully.")
|
||||||
JobType.MOVE: tr("All marked files were moved successfully."),
|
elif jobid == JobType.MOVE:
|
||||||
JobType.DELETE: tr("All marked files were successfully sent to Trash."),
|
msg = tr("All marked files were moved successfully.")
|
||||||
}[jobid]
|
elif jobid == JobType.DELETE and self.deletion_options.direct:
|
||||||
|
msg = tr("All marked files were deleted successfully.")
|
||||||
|
else:
|
||||||
|
msg = tr("All marked files were successfully sent to Trash.")
|
||||||
self.view.show_message(msg)
|
self.view.show_message(msg)
|
||||||
|
|
||||||
def _job_error(self, jobid, err):
|
def _job_error(self, jobid, err):
|
||||||
|
|||||||
Reference in New Issue
Block a user