Fix missing 'Cancel' buttons on some confirmation prompts

This commit is contained in:
Oliver Brakmann
2016-02-11 19:47:20 +01:00
committed by abcdefg30
parent 3604d901b1
commit 6fa4b2bbda
2 changed files with 8 additions and 4 deletions

View File

@@ -317,7 +317,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
if (after != null)
after(newUid);
},
confirmText: "Delete");
confirmText: "Delete",
onCancel: () => { });
}
void DeleteAllMaps(string[] maps, Action<string> after)
@@ -331,7 +332,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
if (after != null)
after(WidgetUtils.ChooseInitialMap(null));
},
confirmText: "Delete");
confirmText: "Delete",
onCancel: () => { });
}
}
}