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 {
|
DispatchQueue.main.async {
|
||||||
isLoading = true
|
isLoading = true
|
||||||
delegate.consolidate(text: &txtContent, pragma: false) // 強制整理
|
delegate.consolidate(text: &txtContent, pragma: false) // 強制整理
|
||||||
|
if selUserDataType == .thePhrases {
|
||||||
|
delegate.tagOverrides(in: &txtContent, mode: selInputMode)
|
||||||
|
}
|
||||||
isLoading = false
|
isLoading = false
|
||||||
isSaved = false
|
isSaved = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,6 +172,9 @@ extension CtlPrefWindow: NSTextViewDelegate, NSTextFieldDelegate {
|
||||||
DispatchQueue.main.async { [self] in
|
DispatchQueue.main.async { [self] in
|
||||||
isLoading = true
|
isLoading = true
|
||||||
vChewingLM.LMConsolidator.consolidate(text: &tfdPETextEditor.string, pragma: false)
|
vChewingLM.LMConsolidator.consolidate(text: &tfdPETextEditor.string, pragma: false)
|
||||||
|
if selUserDataType == .thePhrases {
|
||||||
|
LMMgr.shared.tagOverrides(in: &tfdPETextEditor.string, mode: selInputMode)
|
||||||
|
}
|
||||||
isLoading = false
|
isLoading = false
|
||||||
isSaved = false
|
isSaved = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue