MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / updateDialogsWidthAnimated

Method updateDialogsWidthAnimated

Telegram/SourceFiles/mainwidget.cpp:2659–2678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2657}
2658
2659void MainWidget::updateDialogsWidthAnimated() {
2660 const auto nochat = !_controller->mainSectionShown();
2661 if (!_dialogs || Core::App().settings().dialogsWidthRatio(nochat) > 0) {
2662 return;
2663 }
2664 auto dialogsWidth = _dialogsWidth;
2665 updateWindowAdaptiveLayout();
2666 if (Core::App().settings().dialogsWidthRatio(nochat) == 0.
2667 && (_dialogsWidth != dialogsWidth
2668 || _a_dialogsWidth.animating())) {
2669 _dialogs->startWidthAnimation();
2670 _a_dialogsWidth.start(
2671 [this] { updateControlsGeometry(); },
2672 dialogsWidth,
2673 _dialogsWidth,
2674 st::dialogsWidthDuration,
2675 anim::easeOutCirc);
2676 updateControlsGeometry();
2677 }
2678}
2679
2680bool MainWidget::saveThirdSectionToStackBack() const {
2681 return !_stack.empty()

Callers

nothing calls this directly

Calls 7

AppClass · 0.85
mainSectionShownMethod · 0.80
dialogsWidthRatioMethod · 0.80
settingsMethod · 0.80
startWidthAnimationMethod · 0.80
animatingMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected