Strange side effect when using menu item shortcuts under OS 3.2
I've got a rather strange problem with this code: https://pastebin.com/q9DUzmJJ
My app switches button state depending on a global variable 'connected'. All goes nice if the buttons are pressend or menu items are selected - but if I call a menu item via its shortcut, the button state freezes to the last one in use and switching does not work any longer. A clue why this is happening and how to fix it, somebody?
It may be a bug in requester.class; I will have to check exactly what it is doing to cause this issue.
@jjacobs - yes, it seems that requester.class is causing the problem. This class must contain some kind of memory bug. If I don't use it (replace each requester by an EasyRequest and don't even open requester.class) all troubles are gone.
Online Status
I only had a quick look so far but I did notice a few things:
1) Opening requester.class fails currently; you should open "requester.class" not "classes/requester.class", as the classes/ part is already assumed.
2) You already have the selected menu item in the Code field, no need for the convoluted user data stuff.
3) As none of the menus are mutually exclusive their nm_MutualExclude members should be zero.