Skip to content

Commit

Permalink
Merge pull request #4757 from SJuliez/#4750
Browse files Browse the repository at this point in the history
Loading units during deployment (#4750): dialog call correction
  • Loading branch information
SJuliez authored Sep 8, 2023
2 parents c6d55b0 + ee24ec1 commit 0b0fd12
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 0b0fd12

Please sign in to comment.