I have a docked window with several buttons that I'm using to navigate between my main screens using a simple script.
system.nav.swapTo('Maps/Area_2')
print("Mini Map 2-2")
Most of the time, this navigation works seamlessly. About 5% of the time, my client will refuse to open a specific window, and it's a different window every time.
I know the button's script is executing (I added that console print statement to check this). I know that it is an issue with the screen that I'm attempting to navigate to (I have several buttons that all navigate to the same screen, and they all pass/fail together).
The issue resolves itself when I navigate to a different screen and then to the screen I originally wanted to go to. Even reloading the current main screen resolves this sticking issue.
In that sense, it isn't halting production, but I hate to leave a nuisance bug like this in the program, especially one that comes up as often as this one does. Does anyone have any ideas about what could be going wrong?