mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Remove volume change on muted rows.
This commit is contained in:
@@ -1240,6 +1240,8 @@ base::unique_qptr<Ui::PopupMenu> MembersController::createRowContextMenu(
|
|||||||
: "Unmute for me"),
|
: "Unmute for me"),
|
||||||
toggleMute);
|
toggleMute);
|
||||||
}
|
}
|
||||||
|
if (muteState != Row::State::Muted
|
||||||
|
&& muteState != Row::State::MutedByMe) {
|
||||||
const auto volume = real->volume();
|
const auto volume = real->volume();
|
||||||
result->addAction(QString("Increase volume (%1%)").arg(volume / 100.), [=] {
|
result->addAction(QString("Increase volume (%1%)").arg(volume / 100.), [=] {
|
||||||
changeVolume(volume + 2000);
|
changeVolume(volume + 2000);
|
||||||
@@ -1248,6 +1250,7 @@ base::unique_qptr<Ui::PopupMenu> MembersController::createRowContextMenu(
|
|||||||
changeVolume(volume - 2000);
|
changeVolume(volume - 2000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
result->addAction(
|
result->addAction(
|
||||||
tr::lng_context_view_profile(tr::now),
|
tr::lng_context_view_profile(tr::now),
|
||||||
showProfile);
|
showProfile);
|
||||||
|
Reference in New Issue
Block a user