summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-18 17:03:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-18 17:03:41 (GMT)
commitde209a01e646d6d240d3d98ac1f1b0e100939a12 (patch)
tree90f242fe52cc798a65dca667a7d1125cad3cdbbb /src/core
parentcc79dc6e2bbf78acd146b618df246a7936a0e4ae (diff)
Provided a way to skip the exit message box.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/params.c3
-rw-r--r--src/core/params.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/params.c b/src/core/params.c
index 1a724eb..8cc7b3a 100644
--- a/src/core/params.c
+++ b/src/core/params.c
@@ -186,6 +186,9 @@ bool load_main_config_parameters(void)
param = g_generic_config_create_param(config, MPK_LAST_PROJECT, CPT_STRING, NULL);
if (param == NULL) return false;
+ param = g_generic_config_create_param(config, MPK_SKIP_EXIT_MSG, CPT_BOOLEAN, false);
+ if (param == NULL) return false;
+
param = g_generic_config_create_param(config, MPK_MAXIMIZED, CPT_BOOLEAN, true);
if (param == NULL) return false;
diff --git a/src/core/params.h b/src/core/params.h
index 6fa39b2..bcb6f53 100644
--- a/src/core/params.h
+++ b/src/core/params.h
@@ -56,6 +56,7 @@
#define MPK_INTERNAL_THEME "gui.editor.theme"
#define MPK_TITLE_BAR "gui.editor.hide_titlebar"
#define MPK_LAST_PROJECT "gui.editor.last_project"
+#define MPK_SKIP_EXIT_MSG "gui.editor.skip_exit_msg"
#define MPK_MAXIMIZED "gui.editor.start_maximized"
#define MPK_ELLIPSIS_HEADER "gui.editor.panels.ellipsis_header"
#define MPK_ELLIPSIS_TAB "gui.editor.panels.ellipsis_tab"