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(redis): preserve query editor during database transition
Tobic6ab2d64a972
diff --git a/macos/Presentation/Views/Main/MainView.swift b/macos/Presentation/Views/Main/MainView.swiftindex 04814a0..9704dc5 100644--- a/macos/Presentation/Views/Main/MainView.swift+++ b/macos/Presentation/Views/Main/MainView.swift@@ -1237,14 +1237,14 @@ struct WorkspaceView: View {)}case .queryEditor:- if let context = tab.redisContext {- if appState.activeRedisAdapter(for: context) != nil {- QueryEditorView(tabId: tab.id)- } else {+ ZStack {+ QueryEditorView(tabId: tab.id)+ if let context = tab.redisContext,+ appState.activeRedisAdapter(for: context) == nil {redisContextMismatchView+ .background(Color(nsColor: .windowBackgroundColor))+ .contentShape(Rectangle())}- } else {- QueryEditorView(tabId: tab.id)}case .tableStructure:if let tableName = tab.tableName {