mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
[#157 state:fixed] Straightened up extension glitches during result load/save under Qt
This commit is contained in:
parent
8975f78a5f
commit
a0809333c1
@ -198,7 +198,7 @@ class DirectoriesDialog(QMainWindow):
|
||||
|
||||
def loadResultsTriggered(self):
|
||||
title = trmsg("SelectResultToLoadMsg")
|
||||
files = tr("dupeGuru Results (*.dupeguru)")
|
||||
files = ';;'.join([tr("dupeGuru Results (*.dupeguru)"), tr("All Files (*.*)")])
|
||||
destination = QFileDialog.getOpenFileName(self, title, '', files)
|
||||
if destination:
|
||||
self.app.load_from(destination)
|
||||
|
@ -335,6 +335,8 @@ class ResultWindow(QMainWindow):
|
||||
files = tr("dupeGuru Results (*.dupeguru)")
|
||||
destination = QFileDialog.getSaveFileName(self, title, '', files)
|
||||
if destination:
|
||||
if not destination.endswith('.dupeguru'):
|
||||
destination = '{}.dupeguru'.format(destination)
|
||||
self.app.save_as(destination)
|
||||
self.app.recentResults.insertItem(destination)
|
||||
|
||||
|
@ -235,6 +235,10 @@
|
||||
<source>dupeGuru Results (*.dupeguru)</source>
|
||||
<translation>Résultats dupeGuru (*.dupeguru)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>All Files (*.*)</source>
|
||||
<translation>Tout les fichiers (*.*)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start a new scan</source>
|
||||
<translation>Commencer un nouveau scan</translation>
|
||||
|
Loading…
x
Reference in New Issue
Block a user