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

Method activate

Telegram/SourceFiles/mainwidget.cpp:2957–2975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2955}
2956
2957void 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
2977void MainWidget::handleStartFiles(
2978 QStringList interprets,

Callers 8

CheckMainWidgetFunction · 0.45
finishFirstShowMethod · 0.45
setupMainMethod · 0.45
searchMessagesMethod · 0.45
dialogsCancelledMethod · 0.45
showHistoryMethod · 0.45
showMessageMethod · 0.45

Calls 5

setInnerFocusMethod · 0.45
isLayerShownMethod · 0.45
peerMethod · 0.45
fixOrderMethod · 0.45
widgetMethod · 0.45

Tested by

no test coverage detected