--- a/SwipeAeroSpace/SwipeAeroSpaceApp.swift
+++ b/SwipeAeroSpace/SwipeAeroSpaceApp.swift
@@ -10,10 +10,0 @@ import SwiftUI
-@available(macOS 14.0, *)
-struct SettingsButton: View {
-    @Environment(\.openSettings) private var openSettings
-
-    var body: some View {
-        Button("Settings") {
-            openSettings()
-        }
-    }
-}
@@ -64,16 +54,4 @@ struct SwipeAeroSpaceApp: App {
-            if #available(macOS 14.0, *) {
-                SettingsButton()
-            } else {
-                Button(
-                    action: {
-                        NSApp.sendAction(
-                            Selector(("showSettingsWindow:")),
-                            to: nil,
-                            from: nil
-                        )
-                    },
-                    label: {
-                        Text("Settings")
-                    }
-                )
+            Button("Settings") {
+                NSApp.activate(ignoringOtherApps: true)
+                openWindow(id: "settings")
             }
@@ -92 +70 @@ struct SwipeAeroSpaceApp: App {
-        Settings {
+        WindowGroup(id: "settings") {
