Fix missing 'Cancel' buttons on some confirmation prompts
This commit is contained in:
committed by
abcdefg30
parent
3604d901b1
commit
6fa4b2bbda
@@ -317,7 +317,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (after != null)
|
if (after != null)
|
||||||
after(newUid);
|
after(newUid);
|
||||||
},
|
},
|
||||||
confirmText: "Delete");
|
confirmText: "Delete",
|
||||||
|
onCancel: () => { });
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteAllMaps(string[] maps, Action<string> after)
|
void DeleteAllMaps(string[] maps, Action<string> after)
|
||||||
@@ -331,7 +332,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (after != null)
|
if (after != null)
|
||||||
after(WidgetUtils.ChooseInitialMap(null));
|
after(WidgetUtils.ChooseInitialMap(null));
|
||||||
},
|
},
|
||||||
confirmText: "Delete");
|
confirmText: "Delete",
|
||||||
|
onCancel: () => { });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -410,7 +410,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (after != null)
|
if (after != null)
|
||||||
after.Invoke();
|
after.Invoke();
|
||||||
},
|
},
|
||||||
confirmText: "Delete");
|
confirmText: "Delete",
|
||||||
|
onCancel: () => { });
|
||||||
};
|
};
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -450,7 +451,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (selectedReplay == null)
|
if (selectedReplay == null)
|
||||||
SelectFirstVisibleReplay();
|
SelectFirstVisibleReplay();
|
||||||
},
|
},
|
||||||
confirmText: "Delete All");
|
confirmText: "Delete All",
|
||||||
|
onCancel: () => { });
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user