| 232 | } |
| 233 | |
| 234 | void MainWindow::clearSetupEmailLock() { |
| 235 | if (!_setupEmailLock) { |
| 236 | return; |
| 237 | } |
| 238 | |
| 239 | auto oldContentCache = grabForSlideAnimation(); |
| 240 | _setupEmailLock.destroy(); |
| 241 | if (_passcodeLock) { |
| 242 | _passcodeLock->show(); |
| 243 | updateControlsGeometry(); |
| 244 | _passcodeLock->showAnimated(std::move(oldContentCache)); |
| 245 | } else if (_intro) { |
| 246 | _intro->show(); |
| 247 | updateControlsGeometry(); |
| 248 | _intro->showAnimated(std::move(oldContentCache), true); |
| 249 | } else if (_main) { |
| 250 | _main->show(); |
| 251 | updateControlsGeometry(); |
| 252 | _main->showAnimated(std::move(oldContentCache), true); |
| 253 | Core::App().checkStartUrls(); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | void MainWindow::clearPasscodeLock() { |
| 258 | Expects(_intro || _main); |
nothing calls this directly
no test coverage detected