From 58948e16147a15661acabac575ed81edb2edd619 Mon Sep 17 00:00:00 2001 From: igor Date: Sat, 31 May 2025 19:20:38 -0700 Subject: [PATCH] Settings window behavior improvements. --- src/AppDelegate.swift | 3 ++- src/SettingsViewController.swift | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/AppDelegate.swift b/src/AppDelegate.swift index 268ff61..d789501 100644 --- a/src/AppDelegate.swift +++ b/src/AppDelegate.swift @@ -100,12 +100,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate { } public func showAboutWindow() { - NSApplication.shared.activate(ignoringOtherApps: true) aboutWindow.makeKeyAndOrderFront(nil) + NSApplication.shared.activate(ignoringOtherApps: true) } public func showSettingsWindow() { settingsWindow.makeKeyAndOrderFront(nil) + NSApplication.shared.activate(ignoringOtherApps: true) } // NOTE: This function act like a callback and is triggered by diff --git a/src/SettingsViewController.swift b/src/SettingsViewController.swift index 6992e3b..77303c4 100644 --- a/src/SettingsViewController.swift +++ b/src/SettingsViewController.swift @@ -281,8 +281,8 @@ class SettingsViewController: NSViewController, pathsLabel.leadingAnchor .constraint(equalTo: shortcutsLabel.leadingAnchor), - tableScrollView.widthAnchor.constraint(equalToConstant: 350), - tableScrollView.heightAnchor.constraint(equalToConstant: 150), + tableScrollView.widthAnchor.constraint(equalToConstant: 500), + tableScrollView.heightAnchor.constraint(equalToConstant: 200), tableScrollView.topAnchor .constraint(equalTo: pathsLabel.bottomAnchor), tableScrollView.leadingAnchor