| 2955 | } |
| 2956 | |
| 2957 | void MainWidget::activate() { |
| 2958 | if (_showAnimation) { |
| 2959 | return; |
| 2960 | } |
| 2961 | if (_mainSection) { |
| 2962 | _mainSection->setInnerFocus(); |
| 2963 | } else if (_hider) { |
| 2964 | Assert(_dialogs != nullptr); |
| 2965 | _dialogs->setInnerFocus(); |
| 2966 | } else if (!_controller->isLayerShown()) { |
| 2967 | if (_history->peer()) { |
| 2968 | _history->activate(); |
| 2969 | } else { |
| 2970 | Assert(_dialogs != nullptr); |
| 2971 | _dialogs->setInnerFocus(); |
| 2972 | } |
| 2973 | } |
| 2974 | _controller->widget()->fixOrder(); |
| 2975 | } |
| 2976 | |
| 2977 | void MainWidget::handleStartFiles( |
| 2978 | QStringList interprets, |
no test coverage detected