Skip to content

Commit

Permalink
fix: exit animation of the application disappeared in treeland
Browse files Browse the repository at this point in the history
When clicking close button, call the widget::close.
Modify that calling dapplication::quit as the same with clicking the option exit

Log:
  • Loading branch information
FeiWang1119 committed Nov 23, 2024
1 parent 87fd9f3 commit dedea7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/dtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ void DTitlebar::setVisible(bool visible)
connect(d->maxButton, SIGNAL(clicked()), this, SLOT(_q_toggleWindowState()), Qt::UniqueConnection);
connect(this, SIGNAL(doubleClicked()), this, SLOT(_q_toggleWindowState()), Qt::UniqueConnection);
connect(d->minButton, SIGNAL(clicked()), this, SLOT(_q_showMinimized()), Qt::UniqueConnection);
connect(d->closeButton, &DWindowCloseButton::clicked, d->targetWindow(), &QWidget::close, Qt::UniqueConnection);
connect(d->closeButton, SIGNAL(clicked(bool)), this, SLOT(_q_quitActionTriggered()));

d->updateButtonsState(d->targetWindow()->windowFlags());
} else {
Expand Down

0 comments on commit dedea7a

Please sign in to comment.