Skip to content

Commit

Permalink
fix: emit visible changed signal when window closing
Browse files Browse the repository at this point in the history
- Add visibleChanged signal emission in closeEvent
- Ensure visibility state is properly updated before window closes

Log: emit visible changed signal when window closing
  • Loading branch information
wyu71 committed Jan 21, 2025
1 parent 5549267 commit 2b25b9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/grand-search/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ void MainWindow::hideEvent(QHideEvent *event)

void MainWindow::closeEvent(QCloseEvent *event)
{
emit visibleChanged(false);
// 通知查询控制器停止搜索
emit terminateSearch();
// FIXME: DBlurEffectWidget close abort on treeland
Expand Down

0 comments on commit 2b25b9d

Please sign in to comment.