update time text on previously playing song
This commit is contained in:
parent
3dea6b2810
commit
3a4cd02ddb
7
empc.c
7
empc.c
|
@ -184,8 +184,12 @@ songid_update(int songid)
|
|||
empd_song_item = it = eina_hash_find(empd_current_queue, &songid);
|
||||
/* don't allow set until item exists */
|
||||
if (!it) return EINA_TRUE;
|
||||
empd_songid = songid;
|
||||
if (itp)
|
||||
elm_object_item_signal_emit(itp, "empc,state,not_playing", "empc");
|
||||
{
|
||||
elm_object_item_signal_emit(itp, "empc,state,not_playing", "empc");
|
||||
elm_genlist_item_fields_update(itp, "empc.text.time", ELM_GENLIST_ITEM_FIELD_TEXT);
|
||||
}
|
||||
if (it)
|
||||
{
|
||||
elm_genlist_item_show(it, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
|
||||
|
@ -196,7 +200,6 @@ songid_update(int songid)
|
|||
elm_object_signal_emit(layout, "empc,title,change,next", "empc");
|
||||
else
|
||||
elm_object_signal_emit(layout, "empc,title,change,prev", "empc");
|
||||
empd_songid = songid;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue