Open liampwll opened 1 week ago
Thanks for your improvement proposal.
I'm wondering about side effects. Especially when Tab object is on the stack and removed at the end of a subroutine. For example in Layout, Tab is removed at the end of On_Connect.
We could check the background colour in Tab_Selected with an and then
, which avoid any issues with a new tab being allocated at the same address and would still improve performance. This does not deal with the user messing with the elements outside of the procedures provided by Gui.View.Card, but I'm not sure if it's reasonable to worry about that.
I guess one may always worry about user troubling ideas :-) What about storing Gnoga unique ID?
Would this cause issues if the user specifies an ID themselves or is reusing IDs already disallowed?
This significantly improves performance when many tabs are present as we do not need to send a request to query each one.
This has only been tested on my fork, but I don't see any changes that could cause issues at a glace.