Rasbats / shipdriver_pi

Almost a simulator
GNU General Public License v3.0
3 stars 21 forks source link

icons.h/.cpp need a clean up #594

Closed leamas closed 2 months ago

leamas commented 2 months ago

The code handling the icons in icons.h and icons.cpp needs a clean up. In particular, using static variables like

extern wxString _svg_shipdriver;
extern wxString _svg_shipdriver_toggled;

to carry state is a bad idea since it opens for all sorts of problems related to execute paths ordering.

We need to clean this up.