aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rwxr-xr-xsrc/app.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index 6df47ab..baea0a2 100755
--- a/src/app.rs
+++ b/src/app.rs
@@ -35,6 +35,11 @@ pub struct App {
// Determines if the database should be updated or not
pub should_update_song_list: bool,
+
+ // States
+ pub queue_state: TableState,
+ pub browser_state: TableState,
+ pub playlists_state: ListState,
}
#[derive(Debug, PartialEq, Clone)]
@@ -58,6 +63,10 @@ impl App {
let browser = FileBrowser::new();
+ let queue_state = TableState::new();
+ let browser_state = TableState::new();
+ let playlists_state = ListState::default();
+
Ok(Self {
running: true,
conn,
@@ -73,6 +82,9 @@ impl App {
playlist_popup: false,
append_list,
should_update_song_list: false,
+ queue_state,
+ browser_state,
+ playlists_state,
})
}