Don't change speed on settings click.

This commit is contained in:
John Preston 2024-11-01 10:15:00 +04:00
parent 535b223333
commit 07f0c182e6

View file

@ -734,10 +734,14 @@ SpeedController::SpeedController(
Expects(_qualities.empty() || (_lookupQuality && _changeQuality)); Expects(_qualities.empty() || (_lookupQuality && _changeQuality));
button->setClickedCallback([=] { button->setClickedCallback([=] {
toggleDefault(); if (_lookup && _qualities.empty()) {
save(); toggleDefault();
if (const auto current = menu()) { save();
current->otherEnter(); if (const auto current = menu()) {
current->otherEnter();
}
} else {
showMenu();
} }
}); });
if (const auto lookup = _lookup) { if (const auto lookup = _lookup) {