NetLogo / SimpleR-Extension

BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Opening sr adds another SimpleR Extension menu every time! #6

Closed DOSull closed 3 months ago

DOSull commented 4 months ago

Every time I open a model that invokes extensions [sr] it adds an additional SimpleR Extensions menu to the top bar.

image

The gap in the menubar is the Mac's 'notch' for the camera.

The only line of code in the model shown is extensions [sr] - it seems to be triggered by loading the model - so even just doing File - Recent Files > and selecting the already open model again to relaunch it causes this behaviour, no execution of any sr reporters or procedures is necessary.

This is on Apple M2 Silicon MacOS Sonoma 14.5.

LaCuneta commented 3 months ago

This issue did not occur for me on Ubuntu 22. I am fortunately able to reproduce this issue on an older, non-Apple-Silicon MacBook. I'll update once a fix is in place.

DOSull commented 3 months ago

Certainly seems likely to be an OS / GUI components related issue, so can understand it not happening on another OS. Good to know a fix is on the to do list!

LaCuneta commented 3 months ago

After some research, the problem lies somewhere in the main NetLogo code and affects extensions beyond just SimpleR, so it's more work than I'm able to handle at the moment. I've gone ahead and opened an issue there that references this. I'm going to close this one for now, but you should be able to subscribe to the issue there to get updates on it.

DOSull commented 3 months ago

Sounds good - have subscribed over there!