restrict warning to case where really no plugins loaded

SVN revision: 48591
This commit is contained in:
Hannes Janetzek 2010-05-03 20:01:55 +00:00
parent 20dc27cb8a
commit 13d29193d4
1 changed files with 7 additions and 2 deletions

View File

@ -134,8 +134,13 @@ _fetch(Evry_Plugin *plugin, const char *input)
s = p->selector->state;
if (!s || !s->cur_plugins)
{
evry_item_ref(p->warning);
EVRY_PLUGIN_ITEM_APPEND(p, p->warning);
/* 'text' and 'actions' are always loaded */
if ((p->selector == selectors[0]) &&
(eina_list_count(s->plugins) == 2))
{
evry_item_ref(p->warning);
EVRY_PLUGIN_ITEM_APPEND(p, p->warning);
}
return 1;
}