mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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
|
@ -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…
Reference in a new issue