1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Removed the "all files are refs" error message and made the "no files, can't scan" message quicker. That's because when scanning iPhoto libraries with big libraries, the GUI would hang because these checks would involve loading the whole library.

This commit is contained in:
Virgil Dupras
2010-08-15 15:07:44 +02:00
parent c8827769b4
commit 36eccb7122
8 changed files with 18 additions and 20 deletions

View File

@@ -124,6 +124,13 @@ class Directories(object):
else:
return STATE_NORMAL
def has_any_file(self):
try:
next(self.get_files())
return True
except StopIteration:
return False
def load_from_file(self, infile):
try:
root = ET.parse(infile).getroot()