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(menu): remove duplicate Settings… item in app menu (#26)

Tobi813f36552a7d
diff --git a/macos/App/Lifecycle/GridexApp.swift b/macos/App/Lifecycle/GridexApp.swift
index 250e889..c15b31b 100644
--- a/macos/App/Lifecycle/GridexApp.swift
+++ b/macos/App/Lifecycle/GridexApp.swift
@@ -21,13 +21,6 @@ struct GridexApp: App {
.defaultSize(width: 900, height: 500)
.windowToolbarStyle(.unified(showsTitle: false))
.commands {
- CommandGroup(replacing: .appSettings) {
- Button("Settings...") {
- currentAppState?.showSettings = true
- }
- .keyboardShortcut(",", modifiers: .command)
- }
-
CommandGroup(after: .appInfo) {
Button("Check for Updates…") {
updater.checkForUpdates()
diff --git a/macos/App/State/AppState.swift b/macos/App/State/AppState.swift
index 507d5a1..8a8c57d 100644
--- a/macos/App/State/AppState.swift
+++ b/macos/App/State/AppState.swift
@@ -41,7 +41,6 @@ final class AppState: ObservableObject {
@Published var aiPanelVisible = false
@Published var showDBTypePicker = false
@Published var showConnectionForm = false
- @Published var showSettings = false
@Published var showDatabaseSwitcher = false
@Published var showNewTableSheet = false
@Published var selectedDBType: DatabaseType?