Correct LoadModal to continue a saved campaign
Some checks failed
checkrefs / lfscheck (push) Has been cancelled
checkrefs / checkrefs (push) Has been cancelled
lint / cppcheck (push) Has been cancelled
lint / copyright (push) Has been cancelled
lint / jenkinsfiles (push) Has been cancelled
pre-commit / build (push) Has been cancelled

The `closePageCallback` isn't forwarted to the function calling it. Now
it's possible again to continue a saved campaign.
The error was introduced in 76b6725272.
This commit is contained in:
phosit 2026-05-20 19:13:30 +02:00
parent a0bb103390
commit 01bd743b30
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -43,7 +43,8 @@ class LoadModal extends AutoWatcher
[Engine.openRequest]: { "page": "page_pregame.xml" }
});
Engine.GetGUIObjectByName('deleteGameButton').onPress = () => this.deleteSelectedRun();
Engine.GetGUIObjectByName('startButton').onPress = () => this.startSelectedRun();
Engine.GetGUIObjectByName('startButton').onPress = () =>
this.startSelectedRun(closePageCallback);
this.noCampaignsText = Engine.GetGUIObjectByName("noCampaignsText");
@ -58,7 +59,8 @@ class LoadModal extends AutoWatcher
Engine.GetGUIObjectByName('runDescription').caption = this.currentRuns[this.selectedRun].getLabel();
};
this.runSelection.onMouseLeftDoubleClickItem = () => this.startSelectedRun();
this.runSelection.onMouseLeftDoubleClickItem = () =>
this.startSelectedRun(closePageCallback);
this._ready = true;
}