From ddc06a62599f8b90a008635b1591518d06c14133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Qu=E1=BB=91c=20=C4=90=E1=BA=A1t?= Date: Wed, 1 Apr 2026 14:35:01 +0700 Subject: [PATCH] fix: refresh connection list after creating new connection --- TablePro/Views/Connection/ConnectionFormView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/TablePro/Views/Connection/ConnectionFormView.swift b/TablePro/Views/Connection/ConnectionFormView.swift index 5b44a915..bab74759 100644 --- a/TablePro/Views/Connection/ConnectionFormView.swift +++ b/TablePro/Views/Connection/ConnectionFormView.swift @@ -927,6 +927,7 @@ struct ConnectionFormView: View { SyncChangeTracker.shared.markDirty(.connection, id: connectionToSave.id.uuidString) // Close and connect to database NSApplication.shared.closeWindows(withId: "connection-form") + NotificationCenter.default.post(name: .connectionUpdated, object: nil) connectToDatabase(connectionToSave) } else { if let index = savedConnections.firstIndex(where: { $0.id == connectionToSave.id }) {