-
Notifications
You must be signed in to change notification settings - Fork 135
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
Tabbed UI Improvements #1679
Tabbed UI Improvements #1679
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1679 +/- ##
===========================================
- Coverage 2.14% 2.13% -0.01%
Complexity 209 209
===========================================
Files 270 270
Lines 31247 31350 +103
Branches 5328 5337 +9
===========================================
Hits 670 670
- Misses 30420 30523 +103
Partials 157 157 ☔ View full report in Codecov by Sentry. |
8a84d55
to
1df5dc1
Compare
var line = sc.nextLine().split(Pattern.quote(MtfFile.SIZE)); | ||
var type = EquipmentType.get(line[0]); | ||
var mounted = Mounted.createMounted(loadedUnit, type); | ||
if (line.length > 1) { |
Check warning
Code scanning / CodeQL
Expression always evaluates to the same value Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and seems to work.
Minor improvement to the new Tabs UI.
First, when tabs are restored, equipment not allocated to a location is no longer lost, making that feature more reliable.
Second, new ways to open a new tab:
The old + button can now be right-clicked to select a unit type:
The new ⌸ button will load a unit from cache, and can be right clicked to load a unit from a file: