mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 06:07:45 +00:00
Remove volume change on muted rows.
This commit is contained in:
parent
40fda9503f
commit
b58a977029
@ -1240,13 +1240,16 @@ base::unique_qptr<Ui::PopupMenu> MembersController::createRowContextMenu(
|
||||
: "Unmute for me"),
|
||||
toggleMute);
|
||||
}
|
||||
const auto volume = real->volume();
|
||||
result->addAction(QString("Increase volume (%1%)").arg(volume / 100.), [=] {
|
||||
changeVolume(volume + 2000);
|
||||
});
|
||||
result->addAction(QString("Decrease volume (%1%)").arg(volume / 100.), [=] {
|
||||
changeVolume(volume - 2000);
|
||||
});
|
||||
if (muteState != Row::State::Muted
|
||||
&& muteState != Row::State::MutedByMe) {
|
||||
const auto volume = real->volume();
|
||||
result->addAction(QString("Increase volume (%1%)").arg(volume / 100.), [=] {
|
||||
changeVolume(volume + 2000);
|
||||
});
|
||||
result->addAction(QString("Decrease volume (%1%)").arg(volume / 100.), [=] {
|
||||
changeVolume(volume - 2000);
|
||||
});
|
||||
}
|
||||
}
|
||||
result->addAction(
|
||||
tr::lng_context_view_profile(tr::now),
|
||||
|
Loading…
x
Reference in New Issue
Block a user