mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
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.
This commit is contained in:
parent
b73bffff48
commit
fafcbeea9a
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue