mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
clean up abstraction
This commit is contained in:
parent
9753afba74
commit
77460045c4
@ -295,7 +295,7 @@ class DupeGuru(Broadcaster):
|
|||||||
def _job_completed(self, jobid):
|
def _job_completed(self, jobid):
|
||||||
if jobid == JobType.SCAN:
|
if jobid == JobType.SCAN:
|
||||||
self._results_changed()
|
self._results_changed()
|
||||||
self.directories.save_hashes()
|
fs.filesdb.commit()
|
||||||
if not self.results.groups:
|
if not self.results.groups:
|
||||||
self.view.show_message(tr("No duplicates found."))
|
self.view.show_message(tr("No duplicates found."))
|
||||||
else:
|
else:
|
||||||
|
@ -286,9 +286,6 @@ class Directories:
|
|||||||
tree = ET.ElementTree(root)
|
tree = ET.ElementTree(root)
|
||||||
tree.write(fp, encoding="utf-8")
|
tree.write(fp, encoding="utf-8")
|
||||||
|
|
||||||
def save_hashes(self):
|
|
||||||
fs.filesdb.commit()
|
|
||||||
|
|
||||||
def set_state(self, path, state):
|
def set_state(self, path, state):
|
||||||
"""Set the state of folder at ``path``.
|
"""Set the state of folder at ``path``.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user