Skip to content

Commit 51a1775

Browse files
authored
fix: refresh connection list after creating new connection (#547)
1 parent e71869b commit 51a1775

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

TablePro/Views/Connection/ConnectionFormView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ struct ConnectionFormView: View {
927927
SyncChangeTracker.shared.markDirty(.connection, id: connectionToSave.id.uuidString)
928928
// Close and connect to database
929929
NSApplication.shared.closeWindows(withId: "connection-form")
930+
NotificationCenter.default.post(name: .connectionUpdated, object: nil)
930931
connectToDatabase(connectionToSave)
931932
} else {
932933
if let index = savedConnections.firstIndex(where: { $0.id == connectionToSave.id }) {

0 commit comments

Comments
 (0)