Skip to content

fix(shot): prevent abnormal shape drawing when AI assistant button is…#815

Merged
lzwind merged 1 commit intolinuxdeepin:masterfrom
dengzhongyuan365-dev:master
Apr 11, 2026
Merged

fix(shot): prevent abnormal shape drawing when AI assistant button is…#815
lzwind merged 1 commit intolinuxdeepin:masterfrom
dengzhongyuan365-dev:master

Conversation

@dengzhongyuan365-dev
Copy link
Copy Markdown
Contributor

… clicked

AI assistant is not a drawing tool, but ShapesWidget treated it as one. When m_currentType was set to "aiassistant", dragging in the capture area would enter the shape recording logic (m_isRecording = true) and fall through to the "non-text" branch in mouseReleaseEvent, creating an unexpected shape on the canvas.

Skip the drawing logic in mousePressEvent when m_currentType is "aiassistant" so that existing shapes are preserved and no new shapes are created.

bug: https://pms.uniontech.com/bug-view-356039.html

… clicked

AI assistant is not a drawing tool, but ShapesWidget treated it as one.
When m_currentType was set to "aiassistant", dragging in the capture area
would enter the shape recording logic (m_isRecording = true) and fall
through to the "non-text" branch in mouseReleaseEvent, creating an
unexpected shape on the canvas.

Skip the drawing logic in mousePressEvent when m_currentType is
"aiassistant" so that existing shapes are preserved and no new shapes
are created.

bug: https://pms.uniontech.com/bug-view-356039.html
@deepin-ci-robot
Copy link
Copy Markdown

[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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lzwind lzwind merged commit 634835b into linuxdeepin:master Apr 11, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants