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.h | |
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.h')
-rw-r--r-- | src/gui/Application.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/Application.h b/src/gui/Application.h index 21dff6aff..9f694f8c3 100644 --- a/src/gui/Application.h +++ b/src/gui/Application.h @@ -31,6 +31,8 @@ class OSEventFilter; class QLockFile; class QSocketNotifier; +constexpr int RESTART_EXITCODE = -1; + class Application : public QApplication { Q_OBJECT @@ -47,6 +49,8 @@ public: bool sendFileNamesToRunningInstance(const QStringList& fileNames); + void restart(); + signals: void openFile(const QString& filename); void anotherInstanceStarted(); |