don't update clock timer for time gadgets when deleting a non-advanced gadget

if the deleted gadget won't affect timers then don't update timers

ref T4648
This commit is contained in:
Mike Blumenkrantz 2017-09-01 13:40:12 -04:00
parent e5dd1f12f3
commit 49084c5ced
1 changed files with 6 additions and 0 deletions

View File

@ -321,7 +321,13 @@ clock_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EI
clock_instances = eina_list_remove(clock_instances, inst);
evas_object_del(inst->popup);
time_daynames_clear(inst);
if (inst->cfg)
{
advanced |= !!inst->cfg->advanced;
seconds |= !!inst->cfg->show_seconds;
}
free(inst);
if ((!advanced) && (!seconds)) return;
EINA_LIST_FOREACH(clock_instances, l, inst)
{
advanced |= !!inst->cfg->advanced;