mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
app: don't populate the tool preset factory with data in no-interface mode
but keep the factory around anyway so the code stays simple.
This commit is contained in:
parent
84dcf6281e
commit
cebd34293c
|
@ -977,10 +977,13 @@ gimp_restore (Gimp *gimp,
|
|||
if (! gimp->no_fonts)
|
||||
gimp_fonts_load (gimp);
|
||||
|
||||
/* initialize the list of gimp tool presets */
|
||||
status_callback (NULL, _("Tool Presets"), 0.65);
|
||||
gimp_data_factory_data_init (gimp->tool_preset_factory, gimp->user_context,
|
||||
gimp->no_data);
|
||||
/* initialize the list of gimp tool presets if we have a GUI */
|
||||
if (! gimp->no_interface)
|
||||
{
|
||||
status_callback (NULL, _("Tool Presets"), 0.65);
|
||||
gimp_data_factory_data_init (gimp->tool_preset_factory, gimp->user_context,
|
||||
gimp->no_data);
|
||||
}
|
||||
|
||||
/* initialize the template list */
|
||||
status_callback (NULL, _("Templates"), 0.7);
|
||||
|
|
Loading…
Reference in a new issue