1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-11-19 13:29:03 +00:00

Only save results on quit if the results are actually modified.

This commit is contained in:
Virgil Dupras 2010-08-13 11:48:05 +02:00
parent 1b6b058097
commit 3a5802435f

View File

@ -319,7 +319,8 @@ class DupeGuru(RegistrableApplication, Broadcaster):
if not op.exists(self.appdata):
os.makedirs(self.appdata)
self.directories.save_to_file(op.join(self.appdata, 'last_directories.xml'))
self.results.save_to_xml(op.join(self.appdata, 'last_results.xml'))
if self.results.is_modified:
self.results.save_to_xml(op.join(self.appdata, 'last_results.xml'))
def save_ignore_list(self):
if not op.exists(self.appdata):