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;
|
||||
|
||||
#[derive(Debug)]
|
||||
enum SpotifyMenuState {
|
||||
Root,
|
||||
Genres,
|
||||
|
@ -11,10 +12,15 @@ enum SpotifyMenuState {
|
|||
#[derive(Debug, Default)]
|
||||
pub struct Spotify {
|
||||
i: i32,
|
||||
state: SpotifyMenuState,
|
||||
}
|
||||
|
||||
impl Spotify {
|
||||
pub fn new() -> Self {
|
||||
Spotify {
|
||||
i: 0,
|
||||
state: SpotifyMenuState::Root,
|
||||
}
|
||||
Self::default()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue