| 1036 | } |
| 1037 | |
| 1038 | void Application::switchDebugMode() { |
| 1039 | if (Logs::DebugEnabled()) { |
| 1040 | Logs::SetDebugEnabled(false); |
| 1041 | Launcher::Instance().writeDebugModeSetting(); |
| 1042 | Restart(); |
| 1043 | } else { |
| 1044 | Logs::SetDebugEnabled(true); |
| 1045 | Launcher::Instance().writeDebugModeSetting(); |
| 1046 | DEBUG_LOG(("Debug logs started.")); |
| 1047 | if (_lastActivePrimaryWindow) { |
| 1048 | _lastActivePrimaryWindow->hideLayer(); |
| 1049 | } |
| 1050 | } |
| 1051 | } |
| 1052 | |
| 1053 | Main::Account &Application::activeAccount() const { |
| 1054 | return _domain->active(); |
no test coverage detected