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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user