fix(editor): optimize key shortcut retrieval and improve performance#482
fix(editor): optimize key shortcut retrieval and improve performance#482dengzhongyuan365-dev wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Sorry @dengzhongyuan365-dev, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dengzhongyuan365-dev The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
- Implemented caching for key shortcuts to reduce redundant settings lookups. - Introduced a mechanism to clear the cache when relevant settings change, enhancing responsiveness. - Updated left area widget refresh logic to improve performance during text editing. PMS: bug-368159 Log: 优化快捷键获取逻辑,提升编辑器性能和响应速度。
afed772 to
12d18c5
Compare
deepin pr auto review★ 总体评分:98分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 diff --git a/src/editor/dtextedit.cpp b/src/editor/dtextedit.cpp
index f66ec625..89f1b66c 100644
--- a/src/editor/dtextedit.cpp
+++ b/src/editor/dtextedit.cpp
@@ -3572,7 +3572,6 @@ void TextEdit::undo_()
{
qDebug() << "Starting undo operation";
- qDebug() << "Starting undo operation";
if (!m_pUndoStack->canUndo()) {
qDebug() << "Undo operation skipped - nothing to undo";
return; |
PMS: bug-368159
Log: 优化快捷键获取逻辑,提升编辑器性能和响应速度。