foo_spider_monkey_panel icon indicating copy to clipboard operation
foo_spider_monkey_panel copied to clipboard

Script reloading during package manager usage and popups bugs

Open regorxxx opened this issue 1 year ago • 4 comments

WshShell.Popup instances keep running after closing package manager and SMP panel, which turns into weird bugs since the panel gets reloaded after closing the later.

For ex. this popup fires as soon as the package manager is closed: image

But then the script is reloaded when the SMP panel window is closed again. That behavior is totally prone to errors when using packages, since the script is loaded multiple times while the window is opened.

The problem comes when popups are present. They are spanned multiple times (since the script keeps reloading everytime you click ok). And the window doesn't close while there is a popup box asking for user input.

When you close one of the popups, since it's trying to reference a script variable no longer present (due to reloading), it crashes. plm3

In other words, if the user keeps trying to close the SMP window before closing the popups.... it may well get 10 copies of the same popup and 10 crashes of the same panel in a row.

regorxxx avatar May 02 '23 22:05 regorxxx