Unmute when changing volume
Fixes https://github.com/pop-os/cosmic-player/issues/212
This commit is contained in:
parent
c87fe43aeb
commit
261a038710
1 changed files with 2 additions and 1 deletions
|
|
@ -1183,6 +1183,7 @@ impl Application for App {
|
|||
if let Some(video) = &mut self.video_opt {
|
||||
if volume >= 0.0 && volume <= 1.0 {
|
||||
video.set_volume(volume);
|
||||
video.set_muted(false);
|
||||
self.update_controls(true);
|
||||
}
|
||||
}
|
||||
|
|
@ -1263,6 +1264,7 @@ impl Application for App {
|
|||
|
||||
if (volume >= 0.0 && volume <= 1.0) && !nav_bar_toggled {
|
||||
video.set_volume(volume);
|
||||
video.set_muted(false);
|
||||
self.update_controls(true);
|
||||
}
|
||||
}
|
||||
|
|
@ -1597,7 +1599,6 @@ impl Application for App {
|
|||
)
|
||||
.on_press(Message::AudioToggle)
|
||||
.into(),
|
||||
//TODO: disable slider when muted?
|
||||
Slider::new(0.0..=1.0, volume, Message::AudioVolume)
|
||||
.step(0.01)
|
||||
.into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue