1
0
kopia lustrzana https://github.com/arsenetar/dupeguru.git synced 2026-03-13 03:51:38 +00:00

[#179 state:fixed] Added multiple-selection to the folder selection dialog and thus added the ability to remove multiple folders at once.

This commit is contained in:
Virgil Dupras
2011-11-28 15:25:18 -05:00
rodzic 756190cb8e
commit 1b7068bfe9
5 zmienionych plików z 60 dodań i 35 usunięć

Wyświetl plik

@@ -368,9 +368,11 @@ class DupeGuru(RegistrableApplication, Broadcaster):
def purge_ignore_list(self):
self.scanner.ignore_list.Filter(lambda f,s:op.exists(f) and op.exists(s))
def remove_directory(self,index):
def remove_directories(self, indexes):
try:
del self.directories[index]
indexes = sorted(indexes, reverse=True)
for index in indexes:
del self.directories[index]
self.notify('directories_changed')
except IndexError:
pass