Skip to content

A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.

C++

fix(import): RefreshList re-reads ConnectionStore so imports show without restart

DangHuynh3f271b0d32ec
diff --git a/windows/Gridex/HomePage.cpp b/windows/Gridex/HomePage.cpp
index f7bf4da..cc222b7 100644
--- a/windows/Gridex/HomePage.cpp
+++ b/windows/Gridex/HomePage.cpp
@@ -184,6 +184,11 @@ namespace winrt::Gridex::implementation
void HomePage::RefreshList(const std::wstring& searchQuery)
{
+ // Always re-read from the store so imports / edits / deletes
+ // don't need a page-reload to show. Cheap: ConnectionStore::Load
+ // reads one SQLite table and decrypts passwords — sub-ms for
+ // typical <200 connection counts.
+ allConnections_ = DBModels::ConnectionStore::Load();
ConnectionsListView().Items().Clear();
auto matches = [&](const DBModels::ConnectionConfig& conn) -> bool