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):
|
def loadResultsTriggered(self):
|
||||||
title = trmsg("SelectResultToLoadMsg")
|
title = trmsg("SelectResultToLoadMsg")
|
||||||
files = tr("dupeGuru Results (*.dupeguru)")
|
files = ';;'.join([tr("dupeGuru Results (*.dupeguru)"), tr("All Files (*.*)")])
|
||||||
destination = QFileDialog.getOpenFileName(self, title, '', files)
|
destination = QFileDialog.getOpenFileName(self, title, '', files)
|
||||||
if destination:
|
if destination:
|
||||||
self.app.load_from(destination)
|
self.app.load_from(destination)
|
||||||
|
@ -335,6 +335,8 @@ class ResultWindow(QMainWindow):
|
|||||||
files = tr("dupeGuru Results (*.dupeguru)")
|
files = tr("dupeGuru Results (*.dupeguru)")
|
||||||
destination = QFileDialog.getSaveFileName(self, title, '', files)
|
destination = QFileDialog.getSaveFileName(self, title, '', files)
|
||||||
if destination:
|
if destination:
|
||||||
|
if not destination.endswith('.dupeguru'):
|
||||||
|
destination = '{}.dupeguru'.format(destination)
|
||||||
self.app.save_as(destination)
|
self.app.save_as(destination)
|
||||||
self.app.recentResults.insertItem(destination)
|
self.app.recentResults.insertItem(destination)
|
||||||
|
|
||||||
|
@ -235,6 +235,10 @@
|
|||||||
<source>dupeGuru Results (*.dupeguru)</source>
|
<source>dupeGuru Results (*.dupeguru)</source>
|
||||||
<translation>Résultats dupeGuru (*.dupeguru)</translation>
|
<translation>Résultats dupeGuru (*.dupeguru)</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>All Files (*.*)</source>
|
||||||
|
<translation>Tout les fichiers (*.*)</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Start a new scan</source>
|
<source>Start a new scan</source>
|
||||||
<translation>Commencer un nouveau scan</translation>
|
<translation>Commencer un nouveau scan</translation>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user