more refined queue events + playlist delete binding

- move from listview to linearlayout + scrollview
- doesn't redraw the whole view on queue changes anymore
- uses new cursive functions for linearlayout (needs cursive git)

closes #3
This commit is contained in:
Henrik Friedrichsen
2019-03-04 00:56:34 +01:00
parent 38592e3a4c
commit 9507add6a4
5 changed files with 105 additions and 42 deletions

View File

@@ -1,10 +1,11 @@
use crossbeam_channel::{unbounded, Receiver, Sender, TryIter};
use cursive::{CbFunc, Cursive};
use queue::QueueChange;
use spotify::PlayerState;
pub enum Event {
QueueUpdate,
Queue(QueueChange),
Player(PlayerState),
}