aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2024-05-12 17:17:57 +0530
committerkrolxon <krolyxon@tutanota.com>2024-05-12 17:17:57 +0530
commitf3fb60a1a0fa5156bd0a4569a383224cdbabd961 (patch)
tree9681900b17601c61e33f4e664f5662dd327c344f /src/app.rs
parent633841700263a055a13a4ba41e9026a1abc5073c (diff)
fix highlight delay when song deleted from queue
Diffstat (limited to 'src/app.rs')
-rwxr-xr-xsrc/app.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app.rs b/src/app.rs
index f0b51f2..61f9e9e 100755
--- a/src/app.rs
+++ b/src/app.rs
@@ -12,9 +12,8 @@ pub type AppResult<T> = std::result::Result<T, Box<dyn std::error::Error>>;
/// Application
#[derive(Debug)]
pub struct App {
- /// check if app is running
- pub running: bool,
- pub conn: Connection,
+ pub running: bool, // Check if app is running
+ pub conn: Connection, // Connection
pub browser: FileBrowser, // Directory browser
pub queue_list: ContentList<Song>, // Stores the current playing queue
pub pl_list: ContentList<String>, // Stores list of playlists
@@ -91,7 +90,6 @@ impl App {
// }
// });
conn.conn.queue().unwrap().into_iter().for_each(|x| {
- // vec.push(x.title.unwrap());
vec.push(x);
});
}