SessionCtl // Automatically suppresses farts unless today is April 1st.

This commit is contained in:
ShikiSuen 2023-02-06 20:19:25 +08:00
parent 6430515215
commit 3b836d3dff
1 changed files with 6 additions and 0 deletions

View File

@ -218,6 +218,12 @@ extension SessionCtl {
isServingIMEItself = Bundle.main.bundleIdentifier == senderBundleID isServingIMEItself = Bundle.main.bundleIdentifier == senderBundleID
} }
} }
DispatchQueue.main.async {
//
if !Date.isTodayTheDate(from: 0401), !PrefMgr.shared.shouldNotFartInLieuOfBeep {
PrefMgr.shared.shouldNotFartInLieuOfBeep = true
}
}
DispatchQueue.main.async { [self] in DispatchQueue.main.async { [self] in
if isActivated { return } if isActivated { return }