SettingsUI // Update a binding & Folder structure changes.
This commit is contained in:
parent
a448c4cf7a
commit
2fb1b22270
|
@ -115,16 +115,9 @@ public struct VwrSettingsPaneCassette: View {
|
||||||
Text("×")
|
Text("×")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Spacer()
|
}
|
||||||
Text(
|
UserDef.kCassetteEnabled.bind(
|
||||||
LocalizedStringKey(
|
$cassetteEnabled.didChange {
|
||||||
"Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated)."
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.settingsDescription()
|
|
||||||
Toggle(
|
|
||||||
LocalizedStringKey("Enable cassette mode, suppressing phonabet input"),
|
|
||||||
isOn: $cassetteEnabled.didChange {
|
|
||||||
if cassetteEnabled, !LMMgr.checkCassettePathValidity(cassettePath) {
|
if cassetteEnabled, !LMMgr.checkCassettePathValidity(cassettePath) {
|
||||||
if let window = CtlSettingsUI.shared?.window {
|
if let window = CtlSettingsUI.shared?.window {
|
||||||
IMEApp.buzz()
|
IMEApp.buzz()
|
||||||
|
@ -142,8 +135,7 @@ public struct VwrSettingsPaneCassette: View {
|
||||||
}
|
}
|
||||||
LMMgr.syncLMPrefs()
|
LMMgr.syncLMPrefs()
|
||||||
}
|
}
|
||||||
)
|
).render()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Something Else
|
// MARK: - Something Else
|
Loading…
Reference in New Issue