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;
#[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()
}
}