Merge pull request #2515 from WizardCM/browser-hwaccel-restart
UI: Restart when browser hardware acceleration changedmaster
commit
9b186a47e3
|
@ -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;
|
||||
|
|
|
@ -235,6 +235,7 @@ private:
|
|||
void OnAuthConnected();
|
||||
QString lastService;
|
||||
int prevLangIndex;
|
||||
bool prevBrowserAccel;
|
||||
private slots:
|
||||
void UpdateServerList();
|
||||
void UpdateKeyLink();
|
||||
|
|
Loading…
Reference in New Issue