Ephoto: Don't refresh thumb browser unless the current state is viewing the thumb browser.

This commit is contained in:
Stephen Houston 2017-10-02 13:46:00 -05:00
parent b1a92de3bb
commit 18bc0792aa
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,7 @@ _config_save_cb(void *data, Evas_Object *obj EINA_UNUSED,
evas_object_del(popup);
elm_object_focus_set(ephoto->pager, EINA_TRUE);
if (ephoto->state == EPHOTO_STATE_THUMB)
ephoto_thumb_browser_recalc(ephoto);
}

View File

@ -382,6 +382,7 @@ _on_transition_end(void *data, Evas_Object *obj EINA_UNUSED,
evas_object_show(ss->current_item);
elm_layout_signal_emit(ss->slideshow, "ephoto,transition,done", "ephoto");
ss->timeout = ss->ephoto->config->slideshow_timeout;
if (ss->timer)
ecore_timer_del(ss->timer);
ss->timer = NULL;