diff --git a/core/app.py b/core/app.py index af01b718..98bdab02 100644 --- a/core/app.py +++ b/core/app.py @@ -239,7 +239,7 @@ class DupeGuru(RegistrableApplication, Broadcaster): if g not in changed_groups: self.results.make_ref(dupe) changed_groups.add(g) - self.notify('results_switched') + self.notify('results_changed_but_keep_selection') def mark_all(self): self.results.mark_all() @@ -276,7 +276,7 @@ class DupeGuru(RegistrableApplication, Broadcaster): def remove_duplicates(self, duplicates): self.results.remove_duplicates(self.without_ref(duplicates)) - self.notify('results_changed') + self.notify('results_changed_but_keep_selection') def remove_marked(self): self.results.perform_on_marked(lambda x:True, True) diff --git a/core/gui/base.py b/core/gui/base.py index 36e5304b..a72c446d 100644 --- a/core/gui/base.py +++ b/core/gui/base.py @@ -27,6 +27,6 @@ class GUIObject(Listener): def results_changed(self): pass - def results_switched(self): + def results_changed_but_keep_selection(self): pass diff --git a/core/gui/result_tree.py b/core/gui/result_tree.py index 09cdc4a2..c7bfd24f 100644 --- a/core/gui/result_tree.py +++ b/core/gui/result_tree.py @@ -149,7 +149,7 @@ class ResultTree(GUIObject, Tree): self._refresh() self.view.refresh() - def results_switched(self): + def results_changed_but_keep_selection(self): # What we want to to here is that instead of restoring selected *dupes* after refresh, we # restore selected *paths*. paths = self.selected_paths