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:
Michael Natterer 2011-05-17 14:54:40 +02:00
parent 84dcf6281e
commit cebd34293c

View file

@ -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);