MegaMek / megameklab

MegaMekLab is a BattleTech unit modification program. It allows creating and modifying all unit types available in MegaMek from Support Vehicles up to WarShips. It also allows printing record sheets for single or multiple units.
http://www.megamek.org
86 stars 133 forks source link

Refactor saveUnitList() to not make a new ClientGUI #1597

Closed pavelbraginskiy closed 2 months ago

pavelbraginskiy commented 3 months ago

Simple refactor of a previous pull request to not make the print-queue dialog depend on ClientGUI.

Also sets the default filename of the new file to the name of the original file.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 2.13%. Comparing base (71b9139) to head (7ed709c). Report is 14 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1597 +/- ## =========================================== - Coverage 2.13% 2.13% -0.01% Complexity 204 204 =========================================== Files 266 266 Lines 30697 30714 +17 Branches 5231 5235 +4 =========================================== Hits 656 656 - Misses 29888 29905 +17 Partials 153 153 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

HammerGS commented 2 months ago

Conflicting files.