Please note that security bugs or issues should be reported to security@pgadmin.org.
Describe the bug
Disabling 'save application state' from preferences does not disable the saving application state feature.
To Reproduce
Steps to reproduce the behavior:
- Go to preferences > User Interface > Turn off 'Save application state' radio button.
- Open query tool, erd tool etc.
- Quit/reopen pgadmin
- QT and ERD tool tabs are restored.
Another scenario
- Turn on 'Save application state' > Open different tools > Turn off 'Save application state' > Restart pgadmin > tools are restored.
Expected behavior
As 'Save application state' behaviour is turned off, tools should not be restored.
Error message
If possible, include the full, unedited text of any error messages displayed.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Windows 10, OSX monterey]
- pgAdmin version: [e.g. 6.15]
- Mode: [e.g Desktop or Server]
- Browser (if running in server mode): [e.g. chrome, safari]
- Package type: [e.g. RPM, DEB, Python, Container, etc.]
Additional context
Add any other context about the problem here.