Skip to content

Commit

Permalink
πŸ› Only NSSound.beep() when there's no frontmost window
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Sep 1, 2023
1 parent 16e5437 commit 97fc5d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Loop/Helpers/LoopManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ class LoopManager {
Defaults[.timesLooped] += 1
iconManager.checkIfUnlockedNewIcon()
} else {
NSSound.beep()
if self.frontmostWindow == nil {
NSSound.beep()
}
}
}
}

0 comments on commit 97fc5d7

Please sign in to comment.