mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-28 08:06:20 -04:00
UI: Restart program when audio/locale changed
This commit is contained in:
@@ -3882,6 +3882,7 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
||||
|
||||
if (button == QMessageBox::No) {
|
||||
event->ignore();
|
||||
restart = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -4012,6 +4013,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()
|
||||
|
||||
Reference in New Issue
Block a user