From 347eb3d7b604e6f93862b744582bc35512cbb2c2 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Wed, 8 Feb 2017 10:11:27 +0100 Subject: [PATCH] Route manager dialog: change default directory for Load/Save flightplan As suggested in , 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. --- gui/dialogs/route-manager.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/dialogs/route-manager.xml b/gui/dialogs/route-manager.xml index 921003588..441e95429 100644 --- a/gui/dialogs/route-manager.xml +++ b/gui/dialogs/route-manager.xml @@ -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",