1
0
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:
Virgil Dupras
2011-11-28 14:21:10 -05:00
parent 561b469e41
commit 3342b32882
8 changed files with 34 additions and 18 deletions

View File

@@ -38,9 +38,6 @@ class PyDupeGuruBase(PyFairware):
def addDirectory_(self, directory):
return self.py.add_directory(directory)
def removeDirectory_(self, index):
self.py.remove_directory(index)
#---Results
def clearIgnoreList(self):
self.py.scanner.ignore_list.Clear()

View File

@@ -8,6 +8,9 @@ class PyDirectoryOutline(PyOutline):
def addDirectory_(self, path):
self.py.add_directory(path)
def removeSelectedDirectory(self):
self.py.remove_selected()
# python --> cocoa
def refresh_states(self):
# Under cocoa, both refresh() and refresh_states() do the same thing.