UI: Move OBSBasicSettings to scoped block
This ensures that the OBSBasicSettings destructor has been run before the restart prompt appears, preventing bugs related to OBS shutting down with the settings window still having active callbacks.
This commit is contained in:
parent
2f0134bf60
commit
8f4f33aed8
1 changed files with 5 additions and 2 deletions
|
|
@ -4043,8 +4043,11 @@ void OBSBasic::on_action_Settings_triggered()
|
|||
|
||||
settings_already_executing = true;
|
||||
|
||||
OBSBasicSettings settings(this);
|
||||
settings.exec();
|
||||
{
|
||||
OBSBasicSettings settings(this);
|
||||
settings.exec();
|
||||
}
|
||||
|
||||
SystemTray(false);
|
||||
|
||||
settings_already_executing = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue