From 800c341df93bd4b3f61828743445512a683f0bd1 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Mon, 4 Jun 2018 14:48:30 -0700 Subject: [PATCH] LinGui: handle legacy preferences file better "show_presets" key could cause the preset window to be shown at every startup. (cherry picked from commit 7e538312d588b9386245bc237aaf666578f35223) --- gtk/src/internal_defaults.json | 3 ++- gtk/src/presets.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/src/internal_defaults.json b/gtk/src/internal_defaults.json index 4057fd290..081d34b1b 100644 --- a/gtk/src/internal_defaults.json +++ b/gtk/src/internal_defaults.json @@ -6,7 +6,8 @@ "volume": "New Video" }, "OneTimeInitialization": { - "title": "none" + "title": "none", + "show_presets": false }, "Initialization": { "AudioAllowMP3Pass": false, diff --git a/gtk/src/presets.c b/gtk/src/presets.c index c1aaec7e4..58e9da11c 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -1081,6 +1081,7 @@ ghb_prefs_load(signal_user_data_t *ud) #endif store_prefs(); } + ghb_dict_remove(dict, "show_presets"); } void -- 2.40.0