Fixed when game crashes, it doesn't log any time played (#3392)
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
2f889429da
commit
a37cac6f9b
@ -171,6 +171,7 @@ void LauncherPartLaunch::on_state(LoggedProcess::State state)
|
||||
case LoggedProcess::Aborted:
|
||||
case LoggedProcess::Crashed: {
|
||||
m_parent->setPid(-1);
|
||||
m_parent->instance()->setMinecraftRunning(false);
|
||||
emitFailed(tr("Game crashed."));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user