PhraseEditor // Implement tagOverrides().
- This affects both PhraseEditorCocoa and PhraseEditorUI.
This commit is contained in:
parent
7943ae9992
commit
89d2884ea2
|
@ -176,6 +176,9 @@ public struct VwrPhraseEditorUI: View {
|
|||
DispatchQueue.main.async {
|
||||
isLoading = true
|
||||
delegate.consolidate(text: &txtContent, pragma: false) // 強制整理
|
||||
if selUserDataType == .thePhrases {
|
||||
delegate.tagOverrides(in: &txtContent, mode: selInputMode)
|
||||
}
|
||||
isLoading = false
|
||||
isSaved = false
|
||||
}
|
||||
|
|
|
@ -172,6 +172,9 @@ extension CtlPrefWindow: NSTextViewDelegate, NSTextFieldDelegate {
|
|||
DispatchQueue.main.async { [self] in
|
||||
isLoading = true
|
||||
vChewingLM.LMConsolidator.consolidate(text: &tfdPETextEditor.string, pragma: false)
|
||||
if selUserDataType == .thePhrases {
|
||||
LMMgr.shared.tagOverrides(in: &tfdPETextEditor.string, mode: selInputMode)
|
||||
}
|
||||
isLoading = false
|
||||
isSaved = false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue