Prefs // +kPhraseEditorAutoReloadExternalModifications.

This commit is contained in:
ShikiSuen 2022-12-06 22:58:06 +08:00
parent e163c63343
commit 5dbbb0fcfa
3 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public protocol PrefMgrProtocol {
var showReverseLookupInCandidateUI: Bool { get set }
var autoCompositeWithLongestPossibleCassetteKey: Bool { get set }
var shareAlphanumericalModeStatusAcrossClients: Bool { get set }
var phraseEditorAutoReloadExternalModifications: Bool { get set }
var cns11643Enabled: Bool { get set }
var cassetteEnabled: Bool { get set }
var symbolInputEnabled: Bool { get set }

View File

@ -67,6 +67,7 @@ public enum UserDef: String, CaseIterable {
case kShowReverseLookupInCandidateUI = "ShowReverseLookupInCandidateUI"
case kAutoCompositeWithLongestPossibleCassetteKey = "AutoCompositeWithLongestPossibleCassetteKey"
case kShareAlphanumericalModeStatusAcrossClients = "ShareAlphanumericalModeStatusAcrossClients"
case kPhraseEditorAutoReloadExternalModifications = "PhraseEditorAutoReloadExternalModifications"
case kUseIMKCandidateWindow = "UseIMKCandidateWindow"
case kHandleDefaultCandidateFontsByLangIdentifier = "HandleDefaultCandidateFontsByLangIdentifier"

View File

@ -155,6 +155,9 @@ public class PrefMgr: PrefMgrProtocol {
@AppProperty(key: UserDef.kShareAlphanumericalModeStatusAcrossClients.rawValue, defaultValue: false)
public var shareAlphanumericalModeStatusAcrossClients: Bool
@AppProperty(key: UserDef.kPhraseEditorAutoReloadExternalModifications.rawValue, defaultValue: true)
public var phraseEditorAutoReloadExternalModifications: Bool
// MARK: - Settings (Tier 2)
@AppProperty(key: UserDef.kUseIMKCandidateWindow.rawValue, defaultValue: false)