| 255 | } |
| 256 | |
| 257 | void MainWindow::clearPasscodeLock() { |
| 258 | Expects(_intro || _main); |
| 259 | |
| 260 | if (!_passcodeLock) { |
| 261 | return; |
| 262 | } |
| 263 | |
| 264 | auto oldContentCache = grabForSlideAnimation(); |
| 265 | _passcodeLock.destroy(); |
| 266 | if (_setupEmailLock) { |
| 267 | _setupEmailLock->show(); |
| 268 | updateControlsGeometry(); |
| 269 | _setupEmailLock->showAnimated(std::move(oldContentCache)); |
| 270 | } else if (_intro) { |
| 271 | _intro->show(); |
| 272 | updateControlsGeometry(); |
| 273 | _intro->showAnimated(std::move(oldContentCache), true); |
| 274 | } else if (_main) { |
| 275 | _main->show(); |
| 276 | updateControlsGeometry(); |
| 277 | _main->showAnimated(std::move(oldContentCache), true); |
| 278 | Core::App().checkStartUrls(); |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | void MainWindow::setupIntro( |
| 283 | Intro::EnterPoint point, |
nothing calls this directly
no test coverage detected