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.

Introduced in 2520c45220

Fixes: #9086
This commit is contained in:
phosit
2026-08-08 13:02:35 +02:00
parent 478acbdf5c
commit 7892a4f40f
@@ -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);
}
}
];