Toolbar buttons missing
Machine-Maker opened this issue · 4 comments
There may be more to it than overriding IconName
Also, I do think that's actually it. Because the string returned by IconName (passed through GetCleanName) is used as the buttons ID. So its trying to add a bunch of buttons with the same ID, each one overriding the previous. Will test here shortly, I think I got my environment almost working for dev.
Ok, looking into the code a bit, I think it’s because the Preset windows don’t override the IconName method, so it just returns the default name from DisplayModule.cs
I guess I never implemented it. There may be more to it than overriding IconName. I doubt the button will add/remove themselves when windows are added/removed.
I can not work on it currently so if you want to try to implement it feel free to submit a PR.