PrefUI // Only showing fart SFX toggle on April 1st.

This commit is contained in:
ShikiSuen 2023-02-06 20:25:37 +08:00
parent 3b836d3dff
commit 13a7076255
1 changed files with 35 additions and 33 deletions

View File

@ -168,6 +168,7 @@ struct VwrPrefPaneGeneral: View {
PrefMgr.shared.inlineDumpPinyinInLieuOfZhuyin = selInlineDumpPinyinInLieuOfZhuyin
}
)
if Date.isTodayTheDate(from: 0401) {
Toggle(
LocalizedStringKey("Stop farting (when typed phonetic combination is invalid, etc.)"),
isOn: $selEnableFartSuppressor.onChange {
@ -205,6 +206,7 @@ struct VwrPrefPaneGeneral: View {
}
)
}
}
SSPreferences.Section(label: { Text(LocalizedStringKey("Misc Settings:")).controlSize(.small) }) {
Toggle(
LocalizedStringKey("Check for updates automatically"),