| 1969 | } |
| 1970 | |
| 1971 | void Restart() { |
| 1972 | const auto updateReady = !UpdaterDisabled() |
| 1973 | && (UpdateChecker().state() == UpdateChecker::State::Ready); |
| 1974 | if (updateReady) { |
| 1975 | cSetRestartingUpdate(true); |
| 1976 | } else { |
| 1977 | cSetRestarting(true); |
| 1978 | cSetRestartingToSettings(true); |
| 1979 | } |
| 1980 | Quit(); |
| 1981 | } |
| 1982 | |
| 1983 | } // namespace Core |
no test coverage detected