Skip to content

Commit

Permalink
Close the window using the invokeMethod to not block
Browse files Browse the repository at this point in the history
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
  • Loading branch information
Trial97 committed Nov 7, 2024
1 parent 6e55239 commit 9601fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launcher/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ void Application::controllerSucceeded()
// on success, do...
if (controller->instance()->settings()->get("AutoCloseConsole").toBool()) {
if (extras.window) {
extras.window->close();
QMetaObject::invokeMethod(extras.window, &QWidget::close, Qt::QueuedConnection);
}
}
extras.controller.reset();
Expand Down

0 comments on commit 9601fbf

Please sign in to comment.