From 15f5d8dc3c3b69a2a7ecea34e471f0f82c2707be Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Thu, 16 May 2024 23:44:38 +0200 Subject: [PATCH] change app working model Signed-off-by: Frank Villaro-Dixon --- src/spotify.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/spotify.rs b/src/spotify.rs index 157e257..825d327 100644 --- a/src/spotify.rs +++ b/src/spotify.rs @@ -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() } }