Fix "I will return" button

When temporarly leaving a multiplayer game the "I will return" button
didn't work. This was because there was no valid `closeSession`.
Since it requires accessing `this` the function can't be an arrow
function anymore.
This commit is contained in:
phosit 2026-08-08 13:02:35 +02:00
parent f90804c78f
commit 0f7f8d2086
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -74,9 +74,9 @@ QuitConfirmationMenu.prototype.MultiplayerClient.prototype.Buttons =
},
{
"caption": translate("Yes"),
"onPress": closeSession =>
"onPress": function()
{
(new ReturnQuestion()).display(closeSession);
(new ReturnQuestion()).display(this.closeSession);
}
}
];