diff options
author | Jonathan White <support@dmapps.us> | 2020-06-28 17:01:24 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-06-28 23:21:50 +0300 |
commit | 4bf6d8d94dd8cf16e5714a922103b73abe1e1ff5 (patch) | |
tree | 9ad0e6bdf037f8be843069513c2d75e99d2e427a /src/gui/Application.cpp | |
parent | 1dd758c66a29bb9c6253c66a66ef1abc78c6acf7 (diff) |
Introduce View Menu
* Move user interface settings from the settings widget into the view menu.
* Add auto-restart prompt to make theme changes easy
Diffstat (limited to 'src/gui/Application.cpp')
-rw-r--r-- | src/gui/Application.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/Application.cpp b/src/gui/Application.cpp index 273ab8763..31222401b 100644 --- a/src/gui/Application.cpp +++ b/src/gui/Application.cpp @@ -315,3 +315,15 @@ bool Application::isDarkTheme() const { return m_darkTheme; } + +void Application::restart() +{ + // Disable single instance + m_lockServer.close(); + if (m_lockFile) { + m_lockFile->unlock(); + delete m_lockFile; + } + + exit(RESTART_EXITCODE); +} |