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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user