Merge pull request #2408 from cg2121/restart-app

UI: Restart program when audio/locale changed
This commit is contained in:
Jim 2020-02-17 21:37:29 -08:00 • committed by GitHub
commit 4d0b3efc23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 48 additions and 4 deletions

View file

@ -3916,6 +3916,7 @@ void OBSBasic::closeEvent(QCloseEvent *event)
if (button == QMessageBox::No) {
event->ignore();
restart = false;
return;
}
}
@ -4046,6 +4047,16 @@ void OBSBasic::on_action_Settings_triggered()
SystemTray(false);
settings_already_executing = false;
if (restart) {
QMessageBox::StandardButton button = OBSMessageBox::question(
this, QTStr("Restart"), QTStr("NeedsRestart"));
if (button == QMessageBox::Yes)
close();
else
restart = false;
}
}
void OBSBasic::on_actionAdvAudioProperties_triggered()