mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-11 10:23:56 +02:00
Don't reset interface scale to auto on Settings open.
This commit is contained in:
parent
d202a0cd06
commit
2a1096d83c
2 changed files with 6 additions and 0 deletions
|
@ -259,6 +259,8 @@ void SetupInterfaceScale(
|
||||||
slider->sectionActivated(
|
slider->sectionActivated(
|
||||||
) | rpl::map([=](int section) {
|
) | rpl::map([=](int section) {
|
||||||
return scaleByIndex(section);
|
return scaleByIndex(section);
|
||||||
|
}) | rpl::filter([=](int scale) {
|
||||||
|
return cEvalScale(scale) != cEvalScale(cConfigScale());
|
||||||
}) | rpl::start_with_next([=](int scale) {
|
}) | rpl::start_with_next([=](int scale) {
|
||||||
setScale(
|
setScale(
|
||||||
(scale == cScreenScale()) ? style::kScaleAuto : scale,
|
(scale == cScreenScale()) ? style::kScaleAuto : scale,
|
||||||
|
|
|
@ -47,6 +47,10 @@ void DiscreteSlider::setActiveSectionFast(int index) {
|
||||||
void DiscreteSlider::finishAnimating() {
|
void DiscreteSlider::finishAnimating() {
|
||||||
_a_left.stop();
|
_a_left.stop();
|
||||||
update();
|
update();
|
||||||
|
_callbackAfterMs = 0;
|
||||||
|
if (_timerId >= 0) {
|
||||||
|
activateCallback();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiscreteSlider::setSelectOnPress(bool selectOnPress) {
|
void DiscreteSlider::setSelectOnPress(bool selectOnPress) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue