UI: Make sure aero resets if settings cancelled
Fixes a bug where pressing "Cancel" on the settings window would not reset aero to its original state.master
parent
e28f2690dd
commit
3f9578dc33
|
@ -2296,8 +2296,13 @@ void OBSBasicSettings::on_buttonBox_clicked(QAbstractButton *button)
|
|||
|
||||
if (val == QDialogButtonBox::AcceptRole ||
|
||||
val == QDialogButtonBox::RejectRole) {
|
||||
if (val == QDialogButtonBox::RejectRole)
|
||||
if (val == QDialogButtonBox::RejectRole) {
|
||||
App()->SetTheme(savedTheme);
|
||||
#ifdef _WIN32
|
||||
if (toggleAero)
|
||||
SetAeroEnabled(!aeroWasDisabled);
|
||||
#endif
|
||||
}
|
||||
ClearChanged();
|
||||
close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue