mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Removed display of volume value in menu when participant is muted.
This commit is contained in:
@@ -127,9 +127,6 @@ MenuVolumeItem::MenuVolumeItem(
|
|||||||
|
|
||||||
const auto returnVolume = [=] {
|
const auto returnVolume = [=] {
|
||||||
_changeVolumeLocallyRequests.fire_copy(_cloudVolume);
|
_changeVolumeLocallyRequests.fire_copy(_cloudVolume);
|
||||||
crl::on_main(_slider.get(), [=] {
|
|
||||||
setSliderVolume(_cloudVolume);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_slider->setChangeFinishedCallback([=](float64 value) {
|
_slider->setChangeFinishedCallback([=](float64 value) {
|
||||||
@@ -220,7 +217,7 @@ void MenuVolumeItem::setCloudVolume(int volume) {
|
|||||||
}
|
}
|
||||||
_cloudVolume = volume;
|
_cloudVolume = volume;
|
||||||
if (!_slider->isChanging()) {
|
if (!_slider->isChanging()) {
|
||||||
setSliderVolume(volume);
|
setSliderVolume(_cloudMuted ? 0. : volume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user