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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user