eed7ede376
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13611
I need to refactor the overall structure and know what to do, but ugh lazy
(cherry picked from commit c6540575b5)