bz5 - fix gadget state update if gadget was created later

e.g. shelf re-configures or adds/removes etc. cause bt gadget icon to
not show current state right. it was missing an "init the state" for
these cases.

@fix
This commit is contained in:
Carsten Haitzler 2020-06-04 09:02:54 +01:00
parent 7062c0fa4c
commit 3150546e30
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
e_gadcon_client_util_menu_attach(inst->gcc);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, _ebluez5_cb_mouse_down, inst);
instances = eina_list_append(instances, inst);
ebluez5_instances_update();
return inst->gcc;
}