Default to the "systray" plug-in when none is configured

This commit is contained in:
Pierre Pronchery 2011-09-01 21:43:39 +00:00
parent 473413fd15
commit cbcfe175e9

View File

@ -506,8 +506,10 @@ static gboolean _new_idle(gpointer data)
phone_show_system(phone, FALSE);
phone_show_write(phone, FALSE);
_idle_settings(phone);
if((plugins = config_get(phone->config, NULL, "plugins")) != NULL)
_idle_load_plugins(phone, plugins);
/* default to the "systray" plug-in if nothing is configured */
if((plugins = config_get(phone->config, NULL, "plugins")) == NULL)
plugins = "systray";
_idle_load_plugins(phone, plugins);
/* try to go online */
memset(&event, 0, sizeof(event));
event.type = PHONE_EVENT_TYPE_STARTING;