1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

[#204 state:fixed] Added a message after re-prioritization telling how many dupe groups were changed by it.

This commit is contained in:
Virgil Dupras
2012-07-31 11:37:51 -04:00
parent 8cd1e13814
commit 4f097a3a89
3 changed files with 21 additions and 4 deletions

View File

@@ -502,9 +502,13 @@ class DupeGuru(RegistrableApplication, Broadcaster):
return False
def reprioritize_groups(self, sort_key):
count = 0
for group in self.results.groups:
group.prioritize(key_func=sort_key)
if group.prioritize(key_func=sort_key):
count += 1
self._results_changed()
msg = tr("{} duplicate groups were changed by the re-prioritization.").format(count)
self.view.show_message(msg)
def reveal_selected(self):
if self.selected_dupes: