change app working model

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-05-16 23:44:38 +02:00
parent 511b4f22b5
commit 15f5d8dc3c

View file

@ -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()
} }
} }