From bb292ec9ade3ed323108ff805b4a6c53115122ba Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Sun, 26 May 2024 17:30:41 -0700 Subject: Hold option when double clicking server in Servers window to open window for that server without autoconnecting. Found a better way to check for currently pressed key modifiers. --- Hotline/macOS/TrackerView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Hotline/macOS/TrackerView.swift') diff --git a/Hotline/macOS/TrackerView.swift b/Hotline/macOS/TrackerView.swift index 5ab4c65..ad0b08c 100644 --- a/Hotline/macOS/TrackerView.swift +++ b/Hotline/macOS/TrackerView.swift @@ -122,8 +122,7 @@ struct TrackerView: View { } if clickedItem.type == .tracker { - if let event = NSApp.currentEvent, - event.modifierFlags.contains(.option) { + if NSEvent.modifierFlags.contains(.option) { trackerSheetBookmark = clickedItem } else { -- cgit