add global play/pause/stop buttons + necessary state logic

This commit is contained in:
Henrik Friedrichsen
2019-03-02 18:37:56 +01:00
parent 70d68f8854
commit 3d1673a7a4
3 changed files with 84 additions and 15 deletions

View File

@@ -1,8 +1,11 @@
use crossbeam_channel::{unbounded, Receiver, Sender, TryIter};
use cursive::{CbFunc, Cursive};
use spotify::PlayerState;
pub enum Event {
QueueUpdate,
PlayState(PlayerState),
}
pub type EventSender = Sender<Event>;