mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
UI: Restart when browser hardware acceleration changed
This commit is contained in:
@@ -2440,6 +2440,7 @@ void OBSBasicSettings::LoadAdvancedSettings()
|
||||
bool browserHWAccel = config_get_bool(App()->GlobalConfig(), "General",
|
||||
"BrowserHWAccel");
|
||||
ui->browserHWAccel->setChecked(browserHWAccel);
|
||||
prevBrowserAccel = ui->browserHWAccel->isChecked();
|
||||
#endif
|
||||
|
||||
SetComboByValue(ui->hotkeyFocusType, hotkeyFocusType);
|
||||
@@ -3534,8 +3535,10 @@ void OBSBasicSettings::SaveSettings()
|
||||
bool langChanged = (ui->language->currentIndex() != prevLangIndex);
|
||||
bool audioRestart = (ui->channelSetup->currentIndex() != channelIndex ||
|
||||
ui->sampleRate->currentIndex() != sampleRateIndex);
|
||||
bool browserHWAccelChanged =
|
||||
(ui->browserHWAccel->isChecked() != prevBrowserAccel);
|
||||
|
||||
if (langChanged || audioRestart)
|
||||
if (langChanged || audioRestart || browserHWAccelChanged)
|
||||
restart = true;
|
||||
else
|
||||
restart = false;
|
||||
|
||||
Reference in New Issue
Block a user