Skip to content

Commit

Permalink
Merge pull request #1689 from pavelbraginskiy/fix/1687
Browse files Browse the repository at this point in the history
Fix loading of FMU slots
  • Loading branch information
Sleet01 authored Jan 10, 2025
2 parents b79e902 + e598729 commit 6c0e855
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions megameklab/src/megameklab/ui/StartupGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ public static void selectAndLoadUnitFromCache(MenuBarOwner previousFrame) {

CConfig.setMostRecentFile(fileName);
if (previousFrame instanceof MegaMekLabTabbedUI tabbedUi) {
UnitUtil.updateLoadedUnit(newUnit);
tabbedUi.addUnit(newUnit, fileName);
} else if (!(previousFrame instanceof MegaMekLabMainUI)
|| (newUnit.getEntityType() != previousFrame.getEntity().getEntityType())) {
Expand Down

0 comments on commit 6c0e855

Please sign in to comment.