Skip to content

Commit

Permalink
[修复Crash应用启动时窗口激活问题]
Browse files Browse the repository at this point in the history
- 通过在`main`函数中添加`app.setActiveWindow(&w);`,确保了Crash窗口在应用启动时成为活动窗口。
  • Loading branch information
RealChuan committed May 31, 2024
1 parent e172460 commit 6c400ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/crashreport/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ auto main(int argc, char *argv[]) -> int
QNetworkProxyFactory::setUseSystemConfiguration(true);

Crash::CrashWidgets w;
app.setActiveWindow(&w);
w.show();

auto result = app.exec();
Expand Down

0 comments on commit 6c400ba

Please sign in to comment.