Skip to content

Commit

Permalink
improve launch behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerbeardman committed Aug 12, 2024
1 parent 6a74086 commit 04398d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stapler/StaplerApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ struct StaplerApp: App {
let currentEvent = NSApplication.shared.currentEvent
let isOpenedFromFinder = currentEvent != nil && currentEvent?.type == .appKitDefined && currentEvent?.subtype.rawValue == NSEvent.EventSubtype.applicationActivated.rawValue

if isOpenedFromFinder {
if isOpenedFromFinder && !appStateManager.wasJustLaunched {

let commandKeyPressed = NSEvent.modifierFlags.contains(.command)

Expand Down

0 comments on commit 04398d8

Please sign in to comment.