Commit 905aff8
committed
fix: prevent sidebar clearing when opening new query tab (#576)
Two fixes:
1. EditorTabPayload.isConnectionOnly now excludes isNewTab payloads.
The "+" button creates a payload with isNewTab:true which was
incorrectly classified as connection-only, causing initializeAndRestoreTabs
to skip the proper new-tab path and potentially fall into restoreFromDisk
which clears session.tables.
2. Skip loadSchemaIfNeeded() when other windows already exist for the
same connection. The schema is already loaded by the first window,
and the concurrent driver use (schema load + health monitor ping)
can crash single-connection drivers like MySQL on high-latency
Cloud connections.1 parent 4654c57 commit 905aff8
File tree
2 files changed
+10
-2
lines changed- TablePro
- Models/Query
- Views/Main
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
454 | 460 | | |
455 | 461 | | |
456 | 462 | | |
| |||
0 commit comments