Main // Use system NSSound by default.

This commit is contained in:
ShikiSuen 2023-04-15 13:35:15 +08:00
parent 4947f49043
commit 5fb420adf1
1 changed files with 7 additions and 1 deletions

View File

@ -80,6 +80,12 @@ public enum IMEApp {
/// Fart or Beep?
static func buzz() {
if PrefMgr.shared.isDebugModeEnabled {
NSSound.buzz(fart: !PrefMgr.shared.shouldNotFartInLieuOfBeep)
} else if !PrefMgr.shared.shouldNotFartInLieuOfBeep {
NSSound.buzz(fart: true)
} else {
NSSound.beep()
}
}
}