Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkwidget
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#628
  • Loading branch information
deepin-ci-robot authored and 18202781743 committed Jan 2, 2025
1 parent dc2415b commit 940aa00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/widgets/dfloatingmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ void DFloatingMessagePrivate::init()
hBoxLayout->addWidget(closeButton);

q->connect(closeButton, &DIconButton::clicked, q, [q]() {
if (q->windowHandle()) {
q->windowHandle()->close();
}
q->close();

if(ENABLE_ANIMATIONS && ENABLE_ANIMATION_MESSAGE) {
Q_EMIT q->messageClosed();
}
Expand Down

0 comments on commit 940aa00

Please sign in to comment.