app: make sure the active tool options get saved in devicerc

gimp_devices_save(): call gimp_device_info_save_tool() on the current
device.
This commit is contained in:
Michael Natterer 2018-06-29 02:59:19 +02:00
parent 1b858eb4ad
commit 188fd773a5
1 changed files with 9 additions and 0 deletions

View File

@ -174,6 +174,15 @@ gimp_devices_save (Gimp *gimp,
if (gimp->be_verbose)
g_print ("Writing '%s'\n", gimp_file_get_utf8_name (file));
if (! GIMP_GUI_CONFIG (gimp->config)->devices_share_tool)
{
GimpDeviceInfo *current_device;
current_device = gimp_device_manager_get_current_device (manager);
gimp_device_info_save_tool (current_device);
}
if (! gimp_config_serialize_to_gfile (GIMP_CONFIG (manager),
file,
"GIMP devicerc",