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

master
Stephen Houston 5 years ago
parent b1a92de3bb
commit 18bc0792aa
  1. 3
      src/bin/ephoto_config.c
  2. 1
      src/bin/ephoto_slideshow.c

@ -63,7 +63,8 @@ _config_save_cb(void *data, Evas_Object *obj EINA_UNUSED,
evas_object_del(popup);
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

@ -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;

Loading…
Cancel
Save