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

@@ -122,6 +122,15 @@ class Directories(directories.Directories):
else:
directories.Directories.add_path(self, path)
def has_any_file(self):
# If we don't do that, it causes a hangup in the GUI when we click Start Scanning because
# checking if there's any file to scan involves reading the whole library. If we have the
# iPhoto library, we assume we have at least one file.
if any(path == Path('iPhoto Library') for path in self._dirs):
return True
else:
return directories.Directories.has_any_file(self)
class DupeGuruPE(app_cocoa.DupeGuru):
def __init__(self):