feat: restart profile after core crash

This commit is contained in:
arm64v8a
2022-10-18 17:15:49 +08:00
parent b46cd2da3d
commit 2e991b675d
6 changed files with 35 additions and 7 deletions

View File

@@ -481,6 +481,8 @@ void MainWindow::dialog_message_impl(const QString &sender, const QString &info)
} else if (sender == "ExternalProcess") {
if (info == "Crashed") {
neko_stop();
} else if (info.startsWith("CoreRestarted")) {
neko_start(info.split(",")[1].toInt());
}
}
}