diff options
author | swirl <swurl@swurl.xyz> | 2022-01-29 21:51:45 -0500 |
---|---|---|
committer | swirl <swurl@swurl.xyz> | 2022-02-03 12:50:24 -0500 |
commit | 3d3f9a8609308ed141c47921607c6e60b1558493 (patch) | |
tree | 3f904d61e2259de934db7490c9c2d4a3b2e21486 /launcher/minecraft/launch | |
parent | 0065a29901a8bd84002189247c2e8b86c31d8ed5 (diff) | |
download | PrismLauncher-3d3f9a8609308ed141c47921607c6e60b1558493.tar.gz PrismLauncher-3d3f9a8609308ed141c47921607c6e60b1558493.tar.bz2 PrismLauncher-3d3f9a8609308ed141c47921607c6e60b1558493.zip |
make closeAfterLaunch good
Diffstat (limited to 'launcher/minecraft/launch')
-rw-r--r-- | launcher/minecraft/launch/LauncherPartLaunch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/minecraft/launch/LauncherPartLaunch.cpp b/launcher/minecraft/launch/LauncherPartLaunch.cpp index e07e20b7..f461b847 100644 --- a/launcher/minecraft/launch/LauncherPartLaunch.cpp +++ b/launcher/minecraft/launch/LauncherPartLaunch.cpp @@ -25,12 +25,12 @@ LauncherPartLaunch::LauncherPartLaunch(LaunchTask *parent) : LaunchStep(parent) { - if (APPLICATION->settings()->get("CloseAfterLaunch").toBoolean()) + if (APPLICATION->settings()->get("CloseAfterLaunch").toBool()) { std::shared_ptr<QMetaObject::Connection> connection{new QMetaObject::Connection}; *connection = connect(&m_process, &LoggedProcess::log, this, [=](QStringList lines, MessageLevel::Enum level) { qDebug() << lines; - if (lines.filter(QRegularExpression(".+Backend library: LWJGL version.+")).length() != 0) + if (lines.filter(QRegularExpression(".*Setting user.+", QRegularExpression::CaseInsensitiveOption)).length() != 0) { APPLICATION->closeAllWindows(); disconnect(*connection); @@ -168,7 +168,7 @@ void LauncherPartLaunch::on_state(LoggedProcess::State state) } case LoggedProcess::Finished: { - if (APPLICATION->settings()->get("CloseAfterLaunch").toBoolean()) + if (APPLICATION->settings()->get("CloseAfterLaunch").toBool()) APPLICATION->showMainWindow(); m_parent->setPid(-1); // if the exit code wasn't 0, report this as a crash |