mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Use directory of current save for open/save-as.
(cherry picked from commit b601d713d2a21dac06bb6c622215cec85767240a)
This commit is contained in:
parent
e8992c5bed
commit
94861ca477
@ -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