change app working model
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
511b4f22b5
commit
15f5d8dc3c
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
use crate::apps::BeoApp;
|
use crate::apps::BeoApp;
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
enum SpotifyMenuState {
|
enum SpotifyMenuState {
|
||||||
Root,
|
Root,
|
||||||
Genres,
|
Genres,
|
||||||
|
@ -11,10 +12,15 @@ enum SpotifyMenuState {
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct Spotify {
|
pub struct Spotify {
|
||||||
i: i32,
|
i: i32,
|
||||||
|
state: SpotifyMenuState,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Spotify {
|
impl Spotify {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
|
Spotify {
|
||||||
|
i: 0,
|
||||||
|
state: SpotifyMenuState::Root,
|
||||||
|
}
|
||||||
Self::default()
|
Self::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue