mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Switch to beta branch when running beta/rc for the first time
This commit is contained in:
parent
f141b9c59b
commit
dc7a20288f
|
@ -2027,6 +2027,18 @@ void OBSBasic::OBSInit()
|
|||
QMetaObject::invokeMethod(this, "on_autoConfigure_triggered",
|
||||
Qt::QueuedConnection);
|
||||
|
||||
#if OBS_RELEASE_CANDIDATE > 0 || OBS_BETA > 0
|
||||
/* Automatically set branch to "beta" the first time a pre-release build is run. */
|
||||
if (!config_get_bool(App()->GlobalConfig(), "General",
|
||||
"AutoBetaOptIn")) {
|
||||
config_set_string(App()->GlobalConfig(), "General",
|
||||
"UpdateBranch", "beta");
|
||||
config_set_bool(App()->GlobalConfig(), "General",
|
||||
"AutoBetaOptIn", true);
|
||||
config_save_safe(App()->GlobalConfig(), "tmp", nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
ToggleMixerLayout(config_get_bool(App()->GlobalConfig(), "BasicWindow",
|
||||
"VerticalVolControl"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue