only update current time if overlay is visible

This commit is contained in:
zmike 2014-01-19 17:25:42 -05:00
parent 3a4cd02ddb
commit 84ef81fd3f
1 changed files with 1 additions and 1 deletions

2
empc.c
View File

@ -263,7 +263,7 @@ empc_status(void *d EINA_UNUSED, int t EINA_UNUSED, Empd_Empc_Status_Data *ev)
empd_song_length = ev->song_length;
empd_song_elapsed = ev->song_elapsed;
elm_slider_value_set(o, (double)ev->song_elapsed / (double)ev->song_length);
if (empd_song_item)
if (empd_song_item && queue_list_state)
elm_genlist_item_fields_update(empd_song_item, "empc.text.time", ELM_GENLIST_ITEM_FIELD_TEXT);
}
up = songid_update(ev->songid);