]> granicus.if.org Git - handbrake/commitdiff
LinGui: handle legacy preferences file better
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 4 Jun 2018 21:48:30 +0000 (14:48 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 27 Jun 2018 19:08:38 +0000 (12:08 -0700)
"show_presets" key could cause the preset window to be shown at every
startup.

(cherry picked from commit 7e538312d588b9386245bc237aaf666578f35223)

gtk/src/internal_defaults.json
gtk/src/presets.c

index 4057fd290a93011d199548c6237c742aba2b0da8..081d34b1b865893e4792190c05ec6758a263bb59 100644 (file)
@@ -6,7 +6,8 @@
         "volume": "New Video"
     },
     "OneTimeInitialization": {
-        "title": "none"
+        "title": "none",
+        "show_presets": false
     },
     "Initialization": {
         "AudioAllowMP3Pass": false,
index c1aaec7e414cf8e62d51c881472b45ee9ed7bbef..58e9da11ca63968b467ca21684258f4dbbc8cad1 100644 (file)
@@ -1081,6 +1081,7 @@ ghb_prefs_load(signal_user_data_t *ud)
 #endif
         store_prefs();
     }
+    ghb_dict_remove(dict, "show_presets");
 }
 
 void