Skip to content

Fixed MekHQ Lockup Caused by Consecutive Glossary Dialogs; Fixed Scroll Pane Start Position in Glossary Dialogs#6378

Merged
IllianiBird merged 1 commit intoMegaMek:masterfrom
IllianiBird:glossaryUpdate
Mar 24, 2025
Merged

Fixed MekHQ Lockup Caused by Consecutive Glossary Dialogs; Fixed Scroll Pane Start Position in Glossary Dialogs#6378
IllianiBird merged 1 commit intoMegaMek:masterfrom
IllianiBird:glossaryUpdate

Conversation

@IllianiBird
Copy link
Collaborator

  • Ensured the GlossaryDialog's scroll pane defaults to the top position on load.
  • Corrected handleImmersiveHyperlinkClick to use the correct reference (this instead of parent).

Dev Notes

Regarding the second point, basically if a user clicks on a hyperlink inside a glossary dialog it should trigger a second dialog to appear, fading away the previous until the current is discarded. However, I was incorrectly hooking into 'parent' and not the current glossary dialog. This meant when consecutive dialogs were opened the original dialog was rendered visible/hidden, causing MekHQ to lock-up entirely.

…ence in Progressive Dialogs

- Ensured the GlossaryDialog's scroll pane defaults to the top position on load.
- Corrected `handleImmersiveHyperlinkClick` to use the correct reference (`this` instead of `parent`).
@IllianiBird IllianiBird added Bug GUI Severity: High Issues described as high severity as per the new issue form labels Mar 24, 2025
@IllianiBird IllianiBird self-assigned this Mar 24, 2025
@codecov
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.32%. Comparing base (d43efbc) to head (85d8b7d).
Report is 10 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6378      +/-   ##
============================================
- Coverage     11.32%   11.32%   -0.01%     
+ Complexity     6284     6280       -4     
============================================
  Files          1070     1070              
  Lines        136003   136004       +1     
  Branches      21016    21016              
============================================
- Hits          15402    15397       -5     
- Misses       119057   119060       +3     
- Partials       1544     1547       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IllianiBird IllianiBird merged commit edaed95 into MegaMek:master Mar 24, 2025
6 checks passed
@IllianiBird IllianiBird deleted the glossaryUpdate branch March 25, 2025 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug GUI Severity: High Issues described as high severity as per the new issue form

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants