aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Houston <smhouston88@gmail.com>2017-10-02 13:46:00 -0500
committerStephen Houston <smhouston88@gmail.com>2017-10-02 13:46:00 -0500
commit18bc0792aaac867681a7db118c6ff69352e6c247 (patch)
treec797d827fc84eb2f373056783ef9a5b78c23c10b
parentUpdate TODO (diff)
downloadephoto-18bc0792aaac867681a7db118c6ff69352e6c247.tar.gz
Ephoto: Don't refresh thumb browser unless the current state is viewing the thumb browser.
-rw-r--r--src/bin/ephoto_config.c3
-rw-r--r--src/bin/ephoto_slideshow.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/ephoto_config.c b/src/bin/ephoto_config.c
index 7e75aa5..56aa1f3 100644
--- a/src/bin/ephoto_config.c
+++ b/src/bin/ephoto_config.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
diff --git a/src/bin/ephoto_slideshow.c b/src/bin/ephoto_slideshow.c
index ec7f911..79c7d14 100644
--- a/src/bin/ephoto_slideshow.c
+++ b/src/bin/ephoto_slideshow.c
@@ -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;