Ephoto: Don't refresh thumb browser unless the current state is viewing the thumb browser.
This commit is contained in:
parent
b1a92de3bb
commit
18bc0792aa
|
@ -63,7 +63,8 @@ _config_save_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
|
|
||||||
evas_object_del(popup);
|
evas_object_del(popup);
|
||||||
elm_object_focus_set(ephoto->pager, EINA_TRUE);
|
elm_object_focus_set(ephoto->pager, EINA_TRUE);
|
||||||
ephoto_thumb_browser_recalc(ephoto);
|
if (ephoto->state == EPHOTO_STATE_THUMB)
|
||||||
|
ephoto_thumb_browser_recalc(ephoto);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -382,6 +382,7 @@ _on_transition_end(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
evas_object_show(ss->current_item);
|
evas_object_show(ss->current_item);
|
||||||
elm_layout_signal_emit(ss->slideshow, "ephoto,transition,done", "ephoto");
|
elm_layout_signal_emit(ss->slideshow, "ephoto,transition,done", "ephoto");
|
||||||
|
|
||||||
|
ss->timeout = ss->ephoto->config->slideshow_timeout;
|
||||||
if (ss->timer)
|
if (ss->timer)
|
||||||
ecore_timer_del(ss->timer);
|
ecore_timer_del(ss->timer);
|
||||||
ss->timer = NULL;
|
ss->timer = NULL;
|
||||||
|
|
Loading…
Reference in New Issue