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

Method showAll

Telegram/SourceFiles/mainwidget.cpp:2313–2379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2311}
2312
2313void MainWidget::showAll() {
2314 if (cPasswordRecovered()) {
2315 cSetPasswordRecovered(false);
2316 _controller->show(Ui::MakeInformBox(
2317 tr::lng_cloud_password_updated()));
2318 }
2319 if (isOneColumn()) {
2320 if (_sideShadow) {
2321 _sideShadow->hide();
2322 }
2323 if (_hider) {
2324 _hider->hide();
2325 }
2326 if (_mainSection) {
2327 _mainSection->show();
2328 } else if (_history->peer()) {
2329 _history->show();
2330 _history->updateControlsGeometry();
2331 } else {
2332 Assert(_dialogs != nullptr);
2333 _dialogs->showFast();
2334 _history->hide();
2335 }
2336 if (_dialogs && isMainSectionShown()) {
2337 _dialogs->hide();
2338 }
2339 } else {
2340 if (_sideShadow) {
2341 _sideShadow->show();
2342 }
2343 if (_hider) {
2344 _hider->show();
2345 }
2346 if (_dialogs) {
2347 _dialogs->showFast();
2348 }
2349 if (_mainSection) {
2350 _mainSection->show();
2351 } else {
2352 _history->show();
2353 _history->updateControlsGeometry();
2354 }
2355 if (_thirdSection) {
2356 _thirdSection->show();
2357 }
2358 if (_thirdShadow) {
2359 _thirdShadow->show();
2360 }
2361 }
2362 if (_player) {
2363 _player->setVisible(true);
2364 _playerHeight = _player->contentHeight();
2365 }
2366 if (_callTopBar) {
2367 _callTopBar->setVisible(true);
2368
2369 // show() could've send pending resize event that would update
2370 // the height value and destroy the top bar if it was hiding.

Callers

nothing calls this directly

Calls 11

MakeInformBoxFunction · 0.85
showMethod · 0.45
hideMethod · 0.45
peerMethod · 0.45
showFastMethod · 0.45
setVisibleMethod · 0.45
contentHeightMethod · 0.45
heightMethod · 0.45
checkActivationMethod · 0.45
widgetMethod · 0.45

Tested by

no test coverage detected