Skip to content

Commit

Permalink
🔀 Merge pull request #570 from MrKai77/mrkai77/loop-635-command-trigg…
Browse files Browse the repository at this point in the history
…er-interfering-with-bartender-functionality
  • Loading branch information
SenpaiHunters authored Sep 27, 2024
2 parents 5989b92 + 7a35151 commit 751dc92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Loop/Managers/LoopManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ private extension LoopManager {

leftClickMonitor = CGEventMonitor(
eventMask: [.leftMouseDown],
callback: { cgEvent in
guard self.isLoopActive else {
callback: { [weak self] cgEvent in
guard let self, isLoopActive, currentAction.direction != .noAction else {
return Unmanaged.passUnretained(cgEvent)
}

if cgEvent.type == .leftMouseDown,
let parentCycleAction = self.parentCycleAction {
self.changeAction(parentCycleAction, disableHapticFeedback: true)
let parentCycleAction {
changeAction(parentCycleAction, disableHapticFeedback: true)
}

return nil
Expand Down

0 comments on commit 751dc92

Please sign in to comment.