Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a54f5c6bd | |||
| 732001771e |
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ferrosonic"
|
name = "ferrosonic"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A terminal-based Subsonic music client with bit-perfect audio playback"
|
description = "A terminal-based Subsonic music client with bit-perfect audio playback"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ fn render_tree(frame: &mut Frame, area: Rect, state: &mut AppState, colors: &The
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut list_state = ListState::default();
|
let mut list_state = ListState::default();
|
||||||
|
*list_state.offset_mut() = state.artists.tree_scroll_offset;
|
||||||
if focused {
|
if focused {
|
||||||
list_state.select(state.artists.selected_index);
|
list_state.select(state.artists.selected_index);
|
||||||
}
|
}
|
||||||
@@ -267,6 +268,7 @@ fn render_songs(frame: &mut Frame, area: Rect, state: &mut AppState, colors: &Th
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut list_state = ListState::default();
|
let mut list_state = ListState::default();
|
||||||
|
*list_state.offset_mut() = state.artists.song_scroll_offset;
|
||||||
if focused {
|
if focused {
|
||||||
list_state.select(artists.selected_song);
|
list_state.select(artists.selected_song);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user