(ctl)PrefWindow // Enforcing Sent Action to CNSLM.

This commit is contained in:
ShikiSuen 2022-03-07 21:59:20 +08:00
parent c3281902b1
commit a0379a0679
2 changed files with 8 additions and 1 deletions

View File

@ -168,6 +168,12 @@ extension RangeReplaceableCollection where Element: Hashable {
}
// CNS
//
@IBAction func toggleCNSSupport(_ sender: Any) {
mgrLangModel.setCNSEnabled(Preferences.cns11643Enabled)
}
@IBAction func toggleTrad2KangXiAction(_ sender: Any) {
if chkTrad2KangXi.state == .on && chkTrad2JISShinjitai.state == .on {
Preferences.toggleShiftJISShinjitaiOutputEnabled()

View File

@ -232,7 +232,7 @@
<rect key="frame" x="3" y="3" width="445" height="134"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Yaj-QY-7xV">
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Yaj-QY-7xV" userLabel="chkCNSSupport">
<rect key="frame" x="19" y="104.5" width="406" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="KdE-Vd-Y50"/>
@ -242,6 +242,7 @@
<font key="font" metaFont="cellTitle"/>
</buttonCell>
<connections>
<action selector="toggleCNSSupport:" target="-2" id="mcY-ma-N0c"/>
<binding destination="32" name="value" keyPath="values.CNS11643Enabled" id="Pbx-Gt-upm"/>
</connections>
</button>