| 2657 | } |
| 2658 | |
| 2659 | void 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 | |
| 2680 | bool MainWidget::saveThirdSectionToStackBack() const { |
| 2681 | return !_stack.empty() |
nothing calls this directly
no test coverage detected