(ctl)PrefWindow // Enforcing Sent Action to CNSLM.
This commit is contained in:
parent
b279e8ee68
commit
f9ed6b9e8e
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue