1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Add ablity to load results at start, closes #902

- Add ablility to load .dupguru file at start by passing as first argument
- Add file association to .dupeguru file in windows at install
This commit is contained in:
2021-08-18 19:24:14 -05:00
parent a685524dd5
commit 2fff1a3436
2 changed files with 37 additions and 0 deletions

View File

@@ -277,6 +277,12 @@ class DupeGuru(QObject):
"Wrong Locale",
msg,
)
# Load results on open if passed a .dupeguru file
if len(sys.argv) > 1:
results = sys.argv[1]
if results.endswith(".dupeguru"):
self.model.load_from(results)
self.recentResults.insertItem(results)
def clearPictureCacheTriggered(self):
title = tr("Clear Picture Cache")