mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Use directory of current save for open/save-as.
This commit is contained in:
parent
dc96d8699a
commit
b601d713d2
@ -237,7 +237,7 @@ class QLiberationWindow(QMainWindow):
|
||||
file = QFileDialog.getOpenFileName(
|
||||
self,
|
||||
"Select game file to open",
|
||||
dir=persistency._dcs_saved_game_folder,
|
||||
dir=self.game.savepath if self.game else persistency._dcs_saved_game_folder,
|
||||
filter="*.liberation",
|
||||
)
|
||||
if file is not None and file[0] != "":
|
||||
@ -260,7 +260,7 @@ class QLiberationWindow(QMainWindow):
|
||||
file = QFileDialog.getSaveFileName(
|
||||
self,
|
||||
"Save As",
|
||||
dir=persistency._dcs_saved_game_folder,
|
||||
dir=self.game.savepath if self.game else persistency._dcs_saved_game_folder,
|
||||
filter="*.liberation",
|
||||
)
|
||||
if file is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user