Skip to content

Commit

Permalink
Merge pull request PrismLauncher#3074 from Trial97/lock
Browse files Browse the repository at this point in the history
Close the window using the invokeMethod to not block
  • Loading branch information
Trial97 authored Nov 7, 2024
2 parents 7d03cb1 + 9601fbf commit 1d9508c
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 1d9508c

Please sign in to comment.