Skip to content

Commit 4ffd5cd

Browse files
committed
Added handling of volume level of groups
1 parent eedc2b1 commit 4ffd5cd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

heos-tui/src/app.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ impl App {
267267
info!("set_group_volume: success={}, level={}", success, level);
268268

269269
if success {
270+
let mut write_list = group_list.write().unwrap();
271+
272+
#[allow(unused_mut)]
273+
let mut group = write_list.get_mut(i).unwrap();
274+
275+
group.volume = level;
276+
270277
cloned_sender.send(Event::Redraw).unwrap();
271278
}
272279
} else if let HeosReply::Error(success, command, message) = reply {

0 commit comments

Comments
 (0)