mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
[#179] Refactored folder deletion so that it uses selection in the core's directory_tree instead of using the one from the GUI layer.
This commit is contained in:
@@ -76,6 +76,11 @@ class DirectoryTree(GUIObject, Tree):
|
||||
def add_directory(self, path):
|
||||
self.app.add_directory(path)
|
||||
|
||||
def remove_selected(self):
|
||||
assert len(self.selected_path) == 1
|
||||
root_index = self.selected_path[0]
|
||||
self.app.remove_directory(root_index)
|
||||
|
||||
def update_all_states(self):
|
||||
for node in self:
|
||||
node.update_all_states()
|
||||
|
||||
Reference in New Issue
Block a user