Don't reset interface scale to auto on Settings open.

This commit is contained in:
John Preston 2021-02-01 12:32:08 +04:00
parent d202a0cd06
commit 2a1096d83c
2 changed files with 6 additions and 0 deletions

View File

@ -259,6 +259,8 @@ void SetupInterfaceScale(
slider->sectionActivated(
) | rpl::map([=](int section) {
return scaleByIndex(section);
}) | rpl::filter([=](int scale) {
return cEvalScale(scale) != cEvalScale(cConfigScale());
}) | rpl::start_with_next([=](int scale) {
setScale(
(scale == cScreenScale()) ? style::kScaleAuto : scale,

View File

@ -47,6 +47,10 @@ void DiscreteSlider::setActiveSectionFast(int index) {
void DiscreteSlider::finishAnimating() {
_a_left.stop();
update();
_callbackAfterMs = 0;
if (_timerId >= 0) {
activateCallback();
}
}
void DiscreteSlider::setSelectOnPress(bool selectOnPress) {