mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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
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:
parent
a0bb103390
commit
01bd743b30
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue