1
0
Эх сурвалжийг харах

UI: Always set first scene collection/profiles

Instead of relying on the default config values (which can change
depending on language), explicitly set the values when run for the first
time.
jp9000 7 жил өмнө
parent
commit
fafcbeea9a
1 өөрчлөгдсөн 14 нэмэгдсэн , 0 устгасан
  1. 14 0
      UI/obs-app.cpp

+ 14 - 0
UI/obs-app.cpp

@@ -1174,6 +1174,20 @@ void OBSApp::AppInit()
 	config_set_default_string(globalConfig, "Basic", "SceneCollectionFile",
 			Str("Untitled"));
 
+	if (!config_has_user_value(globalConfig, "Basic", "Profile")) {
+		config_set_string(globalConfig, "Basic", "Profile",
+				Str("Untitled"));
+		config_set_string(globalConfig, "Basic", "ProfileDir",
+				Str("Untitled"));
+	}
+
+	if (!config_has_user_value(globalConfig, "Basic", "SceneCollection")) {
+		config_set_string(globalConfig, "Basic",
+				"SceneCollection", Str("Untitled"));
+		config_set_string(globalConfig, "Basic",
+				"SceneCollectionFile", Str("Untitled"));
+	}
+
 #ifdef _WIN32
 	bool disableAudioDucking = config_get_bool(globalConfig, "Audio",
 			"DisableAudioDucking");