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.
This commit is contained in:
parent
dc96d8699a
commit
b601d713d2
@ -237,7 +237,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
file = QFileDialog.getOpenFileName(
|
file = QFileDialog.getOpenFileName(
|
||||||
self,
|
self,
|
||||||
"Select game file to open",
|
"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",
|
filter="*.liberation",
|
||||||
)
|
)
|
||||||
if file is not None and file[0] != "":
|
if file is not None and file[0] != "":
|
||||||
@ -260,7 +260,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
file = QFileDialog.getSaveFileName(
|
file = QFileDialog.getSaveFileName(
|
||||||
self,
|
self,
|
||||||
"Save As",
|
"Save As",
|
||||||
dir=persistency._dcs_saved_game_folder,
|
dir=self.game.savepath if self.game else persistency._dcs_saved_game_folder,
|
||||||
filter="*.liberation",
|
filter="*.liberation",
|
||||||
)
|
)
|
||||||
if file is not None:
|
if file is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user