diff --git a/macos/Sources/App/macOS/AppDelegate.swift b/macos/Sources/App/macOS/AppDelegate.swift index 7ae09675c4..bb37171980 100644 --- a/macos/Sources/App/macOS/AppDelegate.swift +++ b/macos/Sources/App/macOS/AppDelegate.swift @@ -1165,7 +1165,7 @@ class AppDelegate: NSObject, if settingsWindowController == nil { let window = SettingsWindow( contentRect: NSRect(x: 0, y: 0, width: 720, height: 500), - styleMask: [.titled, .closable, .miniaturizable, .resizable], + styleMask: [.titled, .closable, .miniaturizable], backing: .buffered, defer: false ) @@ -1174,12 +1174,7 @@ class AppDelegate: NSObject, window.isReleasedWhenClosed = false window.collectionBehavior = [.moveToActiveSpace] - let toolbar = NSToolbar(identifier: "SettingsToolbar") - toolbar.showsBaselineSeparator = false - window.toolbar = toolbar window.toolbarStyle = .unified - - window.minSize = NSSize(width: 680, height: 450) window.contentViewController = NSHostingController(rootView: SettingsView()) settingsWindowController = NSWindowController(window: window) } diff --git a/macos/Sources/Features/Settings/SettingsView.swift b/macos/Sources/Features/Settings/SettingsView.swift index ff445a252d..18a849116c 100644 --- a/macos/Sources/Features/Settings/SettingsView.swift +++ b/macos/Sources/Features/Settings/SettingsView.swift @@ -17,7 +17,7 @@ struct SettingsView: View { .frame(maxWidth: .infinity, maxHeight: .infinity) } .navigationSplitViewStyle(.balanced) - .frame(minWidth: 680, minHeight: 450) + .frame(width: 680, height: 450) } }