Route manager dialog: change default directory for Load/Save flightplan
As suggested in <https://sourceforge.net/p/flightgear/mailman/message/35580843/>, use $FG_HOME/Export rather than $FG_HOME as the default directory for the file selector dialogs popping up when loading or saving a flightplan from the route manager dialog. This is because $FG_HOME/Export will not trigger the "this path is not authorized for writing" refusal added in 280cd523686fbdb175d50417266d2487a8ce67d2, whereas $FG_HOME normally will.
This commit is contained in:
parent
1b8b7db76b
commit
347eb3d7b6
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ command interface /autopilot/route-manager/input:
|
||||||
gui.dialog_update("route-manager");
|
gui.dialog_update("route-manager");
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultDirInFileSelector = getprop("/sim/fg-home");
|
var defaultDirInFileSelector = getprop("/sim/fg-home") ~ "/Export";
|
||||||
|
|
||||||
var file_selector = gui.FileSelector.new(
|
var file_selector = gui.FileSelector.new(
|
||||||
callback: load_route, title: "Load flight-plan", button: "Load",
|
callback: load_route, title: "Load flight-plan", button: "Load",
|
||||||
|
|
Loading…
Reference in a new issue