mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-25 10:44:41 +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(
|
||||
) | 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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue