diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 21e9975e5..ef67b98ca 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -1007,6 +1007,15 @@ do_data_logging_commit (const SGPropertyNode * arg) return true; } + +static bool +do_menu_reload (const SGPropertyNode *) +{ + globals->get_subsystem("gui")->reinit(); + return true; +} + + /** * Built-in command: Add a dialog to the GUI system. Does *not* * display the dialog. The property node should have the same format @@ -1340,6 +1349,7 @@ static struct { { "property-cycle", do_property_cycle }, { "property-randomize", do_property_randomize }, { "data-logging-commit", do_data_logging_commit }, + { "menu-reload", do_menu_reload }, { "dialog-new", do_dialog_new }, { "dialog-show", do_dialog_show }, { "dialog-close", do_dialog_close },