Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2020-06-28 17:01:24 +0300
committerJonathan White <support@dmapps.us>2020-06-28 23:21:50 +0300
commit4bf6d8d94dd8cf16e5714a922103b73abe1e1ff5 (patch)
tree9ad0e6bdf037f8be843069513c2d75e99d2e427a /src/gui/Application.cpp
parent1dd758c66a29bb9c6253c66a66ef1abc78c6acf7 (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.cpp12
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);
+}