Always prompt the user to confirm when leaving a game
This commit is contained in:
committed by
Paul Chote
parent
2204e807b8
commit
14bc7885b3
@@ -194,8 +194,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
hideMenu = true;
|
||||
|
||||
if (world.LocalPlayer == null || world.LocalPlayer.WinState != WinState.Won)
|
||||
{
|
||||
ConfirmationDialogs.ButtonPrompt(
|
||||
title: "Leave Mission",
|
||||
text: "Leave this game and return to the menu?",
|
||||
@@ -203,9 +201,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
onCancel: ShowMenu,
|
||||
confirmText: "Leave",
|
||||
cancelText: "Stay");
|
||||
}
|
||||
else
|
||||
OnQuit();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user