remember export folder location

This commit is contained in:
Damien Elmes 2017-08-24 14:38:05 +10:00
parent 08e0174f2e
commit 77bbc14c59

View File

@ -86,8 +86,7 @@ class ExportDialog(QDialog):
# Get deck name and remove invalid filename characters
deck_name = self.decks[self.frm.deck.currentIndex()]
deck_name = re.sub('[\\\\/?<>:*|"^]', '_', deck_name)
filename = os.path.join(aqt.mw.pm.base,
'{0}{1}'.format(deck_name, self.exporter.ext))
filename = '{0}{1}'.format(deck_name, self.exporter.ext)
while 1:
file = getSaveFile(self, _("Export"), "export",
self.exporter.key, self.exporter.ext,