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

Add option to drop unsaved changes to unit #1691

Closed
wants to merge 0 commits into from

Conversation

pavelbraginskiy
Copy link
Member

@pavelbraginskiy pavelbraginskiy commented Jan 11, 2025

Depends on MegaMek/megamek#6391.

Rather than resetting a unit to a blank one, this allows you to reset a unit back to the state it was in when you last saved/loaded it. This should help when making modifications to an existing design to let you quickly start over.

image

As part of this, if you have autosort/autocompact enabled, after a load/reset of a unit, the autosort and autocompact will temporarily be off until you make some change to the unit's equipment, to prevent situations where the unit isn't actually reset after you ask for a reset.

Copy link

codecov bot commented Jan 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.12%. Comparing base (e598729) to head (84b0936).
Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##             master   #1691      +/-   ##
===========================================
- Coverage      2.13%   2.12%   -0.01%     
  Complexity      209     209              
===========================================
  Files           272     272              
  Lines         31438   31485      +47     
  Branches       5351    5355       +4     
===========================================
  Hits            670     670              
- Misses        30611   30658      +47     
  Partials        157     157              

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant