| 2311 | } |
| 2312 | |
| 2313 | void 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. |
nothing calls this directly
no test coverage detected