From 5fb420adf1e38f63dc50b5c6a2f60048f4cf8ec5 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 15 Apr 2023 13:35:15 +0800 Subject: [PATCH] Main // Use system NSSound by default. --- Source/Modules/main.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Modules/main.swift b/Source/Modules/main.swift index 3026cbfe..60a36a66 100644 --- a/Source/Modules/main.swift +++ b/Source/Modules/main.swift @@ -80,6 +80,12 @@ public enum IMEApp { /// Fart or Beep? static func buzz() { - NSSound.buzz(fart: !PrefMgr.shared.shouldNotFartInLieuOfBeep) + if PrefMgr.shared.isDebugModeEnabled { + NSSound.buzz(fart: !PrefMgr.shared.shouldNotFartInLieuOfBeep) + } else if !PrefMgr.shared.shouldNotFartInLieuOfBeep { + NSSound.buzz(fart: true) + } else { + NSSound.beep() + } } }