Krolyxon
Commit 39c2cbe

rmptui39c2cbe

fix #9

Author
krolxon
Date
2024-06-19 10:42 +0530
Parent
22c8c98
Commit
39c2cbed06ea3abe47b76d4fc7934df0ac491824

+2 −6

2 files changed

  1. M src/app.rs +1 −1
  2. M src/connection.rs +1 −5
M src/app.rs View
@@ -142,8 +142,8 @@ impl App {
142142
143143 pub fn get_append_list(conn: &mut Client) -> AppResult<ContentList<String>> {
144144 let mut list = ContentList::new();
145− list.list.push("New Playlist".to_string());
146145 list.list.push("Current Playlist".to_string());
146+ list.list.push("New Playlist".to_string());
147147 for item in Self::get_playlist(conn)? {
148148 list.list.push(item.to_string());
149149 }
M src/connection.rs View
@@ -50,11 +50,7 @@ impl Connection {
5050 .unwrap_or_else(|_| Some(empty_song.clone()))
5151 .unwrap_or(empty_song);
5252
53− let volume_status = if status.volume == 0 {
54− VolumeStatus::Muted(status.volume)
55− } else {
56− VolumeStatus::Unmuted
57− };
53+ let volume_status = VolumeStatus::Unmuted;
5854
5955 Ok(Self {
6056 conn,