mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
implement hash cache for md5 hash based on sqlite
This commit is contained in:
@@ -138,7 +138,8 @@ class DupeGuru(Broadcaster):
|
||||
self.app_mode = AppMode.STANDARD
|
||||
self.discarded_file_count = 0
|
||||
self.exclude_list = ExcludeList()
|
||||
self.directories = directories.Directories(self.exclude_list)
|
||||
hash_cache_file = op.join(self.appdata, "hash.cache")
|
||||
self.directories = directories.Directories(self.exclude_list, hash_cache_file)
|
||||
self.results = results.Results(self)
|
||||
self.ignore_list = IgnoreList()
|
||||
# In addition to "app-level" options, this dictionary also holds options that will be
|
||||
@@ -293,6 +294,7 @@ class DupeGuru(Broadcaster):
|
||||
def _job_completed(self, jobid):
|
||||
if jobid == JobType.SCAN:
|
||||
self._results_changed()
|
||||
self.directories.save_hashes()
|
||||
if not self.results.groups:
|
||||
self.view.show_message(tr("No duplicates found."))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user