In the login window I have a text field that has its Password property set to true.
upon login, I Hide the login window and show the Main Menu window.
When I close the Main Menu window and the login window is displayed a button that says Passwords is displayed. When I click on it, I get a window that says passwords is locked.
i would open the log in window, after input open the main, close the login.
at main window a menu relogin or logout open the login and close the main.
xojo can close the app after last window is gone.
usually at main window closing event you close any other secondary dialog windows.
the good thing at OOP is with new objects you have a clean start.
i guess you have a toggle button for password input visibility?
I figured out what the problem was. In Mac OS Tahoe, the system setting “AutoFill Passwords and Passkeys” was set. This caused the appearance of the Passwords Screen when the focus was set on a TextField that has the Password property on.
Switching off the AutoFill Passwords and Passkeys option in the system setting solves the problem.