Commit 460c640
committed
Fix GM Edit Person dialog crash due to missing Enhanced Imaging resource (Fixes #8708)
PR Body:
Root Cause
The Enhanced Imaging (EI) option group was added to MegaMek's PilotOptions.java but the corresponding
optionGroup.eiAdvantages resource string was never added to MekHQ's dialog properties files, causing a
MissingResourceException when the dialog iterates through option groups.
Changes
1. CustomizePersonDialog.properties - Added missing optionGroup.eiAdvantages=Enhanced Imaging resource string
2. CreateCharacterDialog.properties - Added missing optionGroup.eiAdvantages=Enhanced Imaging resource string
Files Changed
- MekHQ/resources/mekhq/resources/CustomizePersonDialog.properties - Added EI option group label
- MekHQ/resources/mekhq/resources/CreateCharacterDialog.properties - Added EI option group label
Testing
1. Start new campaign (Veteran Preset)
2. GM add a MechWarrior
3. Right-click, GM -> Edit Person
4. Dialog opens without error
5. "Enhanced Imaging" group appears in Abilities tab
Fixes #87081 parent 042d993 commit 460c640
File tree
2 files changed
+2
-0
lines changed- MekHQ/resources/mekhq/resources
2 files changed
+2
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
0 commit comments