app: save menurc after having deleted all the displays.

Some actions are not meant to be saved, in particular the
"windows-display-*" which have only a meaning during a same session
since display IDs are session-dependent. So let display deletion
happen first so that proper cleaning of action is done when writing
menurc.
This commit is contained in:
Jehan 2016-11-25 04:25:41 +01:00
parent 94a5b7c97a
commit c0ee95995f
1 changed files with 3 additions and 3 deletions

View File

@ -681,9 +681,6 @@ gui_exit_callback (Gimp *gimp,
if (gui_config->save_session_info)
session_save (gimp, FALSE);
if (gui_config->save_accels)
menus_save (gimp, FALSE);
if (gui_config->save_device_status)
gimp_devices_save (gimp, FALSE);
@ -696,6 +693,9 @@ gui_exit_callback (Gimp *gimp,
gimp_displays_delete (gimp);
if (gui_config->save_accels)
menus_save (gimp, FALSE);
gimp_tools_save (gimp, gui_config->save_tool_options, FALSE);
gimp_tools_exit (gimp);