Load playlists only when opening the playlist screen

This commit is contained in:
Felipe Sere
2019-03-04 17:22:46 +00:00
parent c603096d26
commit 7d948707fe
3 changed files with 61 additions and 25 deletions

View File

@@ -3,10 +3,12 @@ use cursive::{CbFunc, Cursive};
use queue::QueueChange;
use spotify::PlayerState;
use ui::playlist::PlaylistEvent;
pub enum Event {
Queue(QueueChange),
Player(PlayerState),
Playlist(PlaylistEvent),
}
pub type EventSender = Sender<Event>;