UI: Implement deferred update flag (properties)
This commit is contained in:
parent
ef4ee1fd1a
commit
dc36f6f420
3 changed files with 13 additions and 1 deletions
|
|
@ -117,6 +117,9 @@ void OBSBasicProperties::on_buttonBox_clicked(QAbstractButton *button)
|
|||
if (val == QDialogButtonBox::AcceptRole) {
|
||||
acceptClicked = true;
|
||||
close();
|
||||
|
||||
if (view->DeferUpdate())
|
||||
view->UpdateSettings();
|
||||
}
|
||||
|
||||
if (val == QDialogButtonBox::RejectRole) {
|
||||
|
|
@ -260,6 +263,8 @@ bool OBSBasicProperties::ConfirmQuit()
|
|||
|
||||
switch (button) {
|
||||
case QMessageBox::Save:
|
||||
if (view->DeferUpdate())
|
||||
view->UpdateSettings();
|
||||
// Do nothing because the settings are already updated
|
||||
break;
|
||||
case QMessageBox::Discard:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue