Skip to content

Commit 125df68

Browse files
committed
refactor: add hasStructureChanges/isHistoryPanelVisible to ConnectionToolbarState
Migrated sidebar reads from AppState.shared to per-window coordinator. Added two properties to ConnectionToolbarState for future write migration. AppState.shared writes remain temporarily — removing them requires careful per-file editing to avoid breaking multi-line expressions.
1 parent 43be6ad commit 125df68

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

TablePro/Models/Connection/ConnectionToolbarState.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ final class ConnectionToolbarState {
183183
/// Whether there are pending data grid changes (for SQL preview button)
184184
var hasDataPendingChanges: Bool = false
185185

186+
/// Whether the structure view has pending schema changes
187+
var hasStructureChanges: Bool = false
188+
189+
/// Whether the history panel is visible
190+
var isHistoryPanelVisible: Bool = false
191+
186192
/// Whether the SQL review popover is showing
187193
var showSQLReviewPopover: Bool = false
188194

0 commit comments

Comments
 (0)