Please note that security bugs or issues should be reported to security@pgadmin.org.
Describe the bug
When updating the connection from maintenance db to another db, query tool asks for maintenance db password.
To Reproduce
Steps to reproduce the behavior:
- Open query tool for maintenance db
- add a new connection to another db using new connection dialog
- update the connection to maintenance db
- disconnect the server
- update the connection from maintenance db to another db
- It asks for maintenance db password if server password is saved or not saved.
Expected behavior
It should ask for password to connect to other db if password is not saved and not asks for password if server password is already saved.
Screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOsx Ventura 13.5.1
- Version: 8.11
- Mode: Desktop
- Package type: arm64