mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Overhaul the layout saving code so it includes the Query Tool and Debugger, and stores the layout when change events are detected rather than (unreliably) on exit. Fixes #4084
This commit is contained in:
committed by
Dave Page
parent
b917246be9
commit
6fb35f2649
@@ -727,11 +727,13 @@ def reset_layout_db(user_id=None):
|
||||
|
||||
if user_id is None:
|
||||
cur.execute(
|
||||
'DELETE FROM SETTING WHERE SETTING="Browser/Layout"'
|
||||
'DELETE FROM SETTING WHERE SETTING in '
|
||||
'("Browser/Layout", "SQLEditor/Layout", "Debugger/Layout")'
|
||||
)
|
||||
else:
|
||||
cur.execute(
|
||||
'DELETE FROM SETTING WHERE SETTING="Browser/Layout"'
|
||||
'DELETE FROM SETTING WHERE SETTING in '
|
||||
'("Browser/Layout", "SQLEditor/Layout", "Debugger/Layout")'
|
||||
' AND USER_ID=?', user_id
|
||||
)
|
||||
conn.commit()
|
||||
|
||||
Reference in New Issue
Block a user