1
0
Fork 0

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:
Florent Rougon 2017-02-08 10:11:27 +01:00
parent 1b8b7db76b
commit 347eb3d7b6

View file

@ -100,7 +100,7 @@ command interface /autopilot/route-manager/input:
gui.dialog_update("route-manager");
}
var defaultDirInFileSelector = getprop("/sim/fg-home");
var defaultDirInFileSelector = getprop("/sim/fg-home") ~ "/Export";
var file_selector = gui.FileSelector.new(
callback: load_route, title: "Load flight-plan", button: "Load",