rmptui39c2cbe
fix #9
+2 −6
2 files changed
- M src/app.rs +1 −1
- M src/connection.rs +1 −5
| @@ -142,8 +142,8 @@ impl App { | |||
| 142 | 142 | ||
| 143 | 143 | pub fn get_append_list(conn: &mut Client) -> AppResult<ContentList<String>> { | |
| 144 | 144 | let mut list = ContentList::new(); | |
| 145 | − | list.list.push("New Playlist".to_string()); | |
| 146 | 145 | list.list.push("Current Playlist".to_string()); | |
| 146 | + | list.list.push("New Playlist".to_string()); | |
| 147 | 147 | for item in Self::get_playlist(conn)? { | |
| 148 | 148 | list.list.push(item.to_string()); | |
| 149 | 149 | } | |
| @@ -50,11 +50,7 @@ impl Connection { | |||
| 50 | 50 | .unwrap_or_else(|_| Some(empty_song.clone())) | |
| 51 | 51 | .unwrap_or(empty_song); | |
| 52 | 52 | ||
| 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; | |
| 58 | 54 | ||
| 59 | 55 | Ok(Self { | |
| 60 | 56 | conn, | |