Thank you very much, Phill. Appreciate the information. I guess the problem is with my windows then.
I checked the setting for both of them and they were:

They are both main windows and not pop up or anything else. Is there any other place that I need to check for their configuration?
Also, I checked project properties and this is what I saw:
Also, intrestingly, when I add the “[system]Client/User/CurrentWindow” to a text box, I can read the current window name when I launch the project. But somehow I get value None when I use system.nav.getCurrentWindow(). So not sure which one is correct
