Merge pull request #797 from dottools/fix/optsAssertOnCancel

BaseGame Template: Fix script assert on canceling game options changes
This commit is contained in:
Brian Roberts 2022-05-30 16:35:01 -05:00 committed by GitHub
commit e0550c6aac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ function OptionsMenu::canClose(%this)
if(%this.unappliedChanges.count() != 0) if(%this.unappliedChanges.count() != 0)
{ {
MessageBoxOKCancel("Discard Changes?", "You have unapplied changes to your settings, do you wish to apply or discard them?", MessageBoxOKCancel("Discard Changes?", "You have unapplied changes to your settings, do you wish to apply or discard them?",
"OptionsMenu.apply(); MainMenuGUI.popPage();", "%this.unappliedChanges.empty(); " @ %this @ ".navigation.popPage();", "OptionsMenu.apply(); MainMenuGUI.popPage();", "" @ %this @ ".unappliedChanges.empty(); " @ %this @ ".navigation.popPage();",
"Apply", "Discard"); "Apply", "Discard");
return false; return false;
} }