Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Minimum Target Skill Level in Mass Training Dialog to 1 #5421

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Adjusted the JSpinner configuration to set the minimum skill level to 1 instead of 0. This prevents users accidentally locking themselves into an invalid state.

Fixes #5317 - I'm hoping this will retroactively fix any saves affected by this bug, too.

Adjusted the JSpinner configuration to set the minimum skill level to 1 instead of 0. This prevents invalid values and ensures a consistent input range aligned with expected skill levels.
Previously, the skill level value could be clamped to 0, which is invalid. Updated the clamping logic to enforce a minimum value of 1, ensuring proper functionality and preventing potential errors.
@IllianiCBT IllianiCBT added the Bug label Dec 18, 2024
@IllianiCBT IllianiCBT self-assigned this Dec 18, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.11%. Comparing base (bbfcc1d) to head (eea2b83).
Report is 50 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5421      +/-   ##
============================================
- Coverage     10.13%   10.11%   -0.02%     
+ Complexity     6081     6063      -18     
============================================
  Files          1052     1052              
  Lines        140315   140314       -1     
  Branches      20399    20399              
============================================
- Hits          14224    14198      -26     
- Misses       124739   124759      +20     
- Partials       1352     1357       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IllianiCBT IllianiCBT merged commit e477022 into MegaMek:master Dec 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants