| 353 | } |
| 354 | |
| 355 | bool Controller::locked() const { |
| 356 | if (Core::App().passcodeLocked()/* || Core::App().setupEmailLocked()*/) { |
| 357 | return true; |
| 358 | } else if (const auto controller = sessionController()) { |
| 359 | return controller->session().termsLocked().has_value(); |
| 360 | } |
| 361 | return false; |
| 362 | } |
| 363 | |
| 364 | void Controller::checkThemeEditor() { |
| 365 | using namespace Window::Theme; |
no test coverage detected