mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
SettingsDialog: Only restart when necessary
The previous few commits now allow for us to change settings without restarting the WebSocket server.
This commit is contained in:
parent
fab56d71ea
commit
41a145c57c
@ -171,14 +171,9 @@ void SettingsDialog::SaveFormData()
|
||||
}
|
||||
}
|
||||
|
||||
bool needsRestart = false;
|
||||
if ((conf->ServerEnabled != ui->enableWebSocketServerCheckBox->isChecked()) ||
|
||||
(conf->DebugEnabled != ui->enableDebugLoggingCheckBox->isChecked()) ||
|
||||
(conf->AuthRequired != ui->enableAuthenticationCheckBox->isChecked()) ||
|
||||
(conf->ServerPassword != ui->serverPasswordLineEdit->text()) ||
|
||||
(conf->ServerPort != ui->serverPortSpinBox->value())) {
|
||||
needsRestart = true;
|
||||
}
|
||||
bool needsRestart = (conf->ServerEnabled != ui->enableWebSocketServerCheckBox->isChecked()) ||
|
||||
(ui->enableAuthenticationCheckBox->isChecked() && conf->ServerPassword != ui->serverPasswordLineEdit->text()) ||
|
||||
(conf->ServerPort != ui->serverPortSpinBox->value());
|
||||
|
||||
conf->ServerEnabled = ui->enableWebSocketServerCheckBox->isChecked();
|
||||
conf->AlertsEnabled = ui->enableSystemTrayAlertsCheckBox->isChecked();
|
||||
|
Loading…
Reference in New Issue
Block a user