Skip to content

Commit

Permalink
Loading units during deployment (MM#4750): dialog call correction
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Sep 7, 2023
1 parent dd008f7 commit ee24ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions megamek/src/megamek/client/ui/swing/DeploymentDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ public void actionPerformed(ActionEvent evt) {
if (!choices.isEmpty()) {
// If we have multiple choices, display a selection dialog.
Entity other = EntityChoiceDialog.showSingleChoiceDialog(clientgui.getFrame(),
"DeploymentDisplay.loadUnitDialog.title",
Messages.getString("DeploymentDisplay.loadUnitDialog.message", ce().getShortName(), ce().getUnusedString()),
Messages.getString("DeploymentDisplay.loadUnitDialog.title"),
choices);

if (!(other instanceof Infantry)) {
Expand Down Expand Up @@ -765,8 +765,8 @@ public void actionPerformed(ActionEvent evt) {
if (!choices.isEmpty()) {

Entity loaded = EntityChoiceDialog.showSingleChoiceDialog(clientgui.getFrame(),
"DeploymentDisplay.unloadUnitDialog.title",
Messages.getString("DeploymentDisplay.unloadUnitDialog.message", ce().getShortName(), ce().getUnusedString()),
Messages.getString("DeploymentDisplay.unloadUnitDialog.title"),
choices);

if (loaded != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5407,8 +5407,8 @@ private Entity chooseEntity(Coords pos) {
} else if (entities.size() > 1) {
// If we have multiple choices, display a selection dialog.
choice = EntityChoiceDialog.showSingleChoiceDialog(clientgui.getFrame(),
"BoardView1.ChooseEntityDialog.title",
Messages.getString("BoardView1.ChooseEntityDialog.message", pos.getBoardNum()),
Messages.getString("BoardView1.ChooseEntityDialog.title"),
entities);
}

Expand Down

0 comments on commit ee24ec1

Please sign in to comment.