Add feedback of failing to start the client

plus, make setRequiringOutput() matched in PM3Process::connectPM3()
This commit is contained in:
wh201906
2022-11-23 14:01:19 +08:00
parent ef9972d24a
commit da2f6ead6e
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -13,6 +13,8 @@ PM3Process::PM3Process(QThread* thread, QObject* parent): QProcess(parent)
connect(serialListener, &QTimer::timeout, this, &PM3Process::onTimeout);
connect(this, &PM3Process::readyRead, this, &PM3Process::onReadyRead);
portInfo = nullptr;
qRegisterMetaType<QProcess::ProcessError>("QProcess::ProcessError");
}
void PM3Process::connectPM3(const QString& path, const QStringList args)
@@ -61,6 +63,8 @@ void PM3Process::connectPM3(const QString& path, const QStringList args)
else
kill();
}
setRequiringOutput(false);
}
void PM3Process::reconnectPM3()