https://bugs.kde.org/show_bug.cgi?id=528564
Bug ID: 528564
Summary: Spell checker always eats up a CPU core, even spell
checker is disabled
Classification: Applications
Product: NeoChat
Version First git master
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
When chat bar editing is active, CPU usage will increase to 100%.
I commented out the code block below to disable Sonnet.SpellcheckHighlighter
and CPU usage back to normal.
I have no idea on how to fix this on earth, so submit bug here.
Instantiator {
id: spellcheckHighlighterInstantiator
active: root.editable
asynchronous: true
Item {
readonly property Sonnet.Settings settings: Sonnet.Settings {}
// readonly property Sonnet.SpellcheckHighlighter highlighter:
Sonnet.SpellcheckHighlighter {
// document: root.textDocument
// cursorPosition: root.cursorPosition
// selectionStart: root.selectionStart
// selectionEnd: root.selectionEnd
// misspelledColor: Kirigami.Theme.negativeTextColor
// onChangeCursorPosition: (start, end) => {
// root.cursorPosition = start;
// root.moveCursorSelection(end, TextEdit.SelectCharacters);
// }
// }
}
}
--
You are receiving this mail because:
You are watching all bug changes.