diff --git a/src/playstatus.rs b/src/playstatus.rs index 363d3cf..5952ee9 100644 --- a/src/playstatus.rs +++ b/src/playstatus.rs @@ -9,6 +9,8 @@ use crate::songdata::SongData; pub struct PlayStatus { /// Whether or not the audio player is currently playing pub playing: bool, + /// Whether or not the queue is open + pub queue_open: bool, /// A reference to the HTML audio element pub audio_player: Option>, /// A queue of songs that have been played, ordered from oldest to newest @@ -53,6 +55,7 @@ impl Default for PlayStatus { fn default() -> Self { Self { playing: false, + queue_open: false, audio_player: None, history: VecDeque::new(), queue: VecDeque::new(), diff --git a/src/songdata.rs b/src/songdata.rs index c24c682..7e0dd0c 100644 --- a/src/songdata.rs +++ b/src/songdata.rs @@ -1,5 +1,5 @@ /// Holds information about a song -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct SongData { /// Song name pub name: String,