fix(process): pid not emitting changed signal

This commit is contained in:
outfoxxed 2024-03-03 15:30:52 -08:00
parent ffa9d02d48
commit 087c929871
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -141,8 +141,9 @@ void Process::startProcessIfReady() {
} }
void Process::onStarted() { void Process::onStarted() {
emit this->started(); emit this->pidChanged();
emit this->runningChanged(); emit this->runningChanged();
emit this->started();
} }
void Process::onFinished(qint32 exitCode, QProcess::ExitStatus exitStatus) { void Process::onFinished(qint32 exitCode, QProcess::ExitStatus exitStatus) {
@ -153,6 +154,7 @@ void Process::onFinished(qint32 exitCode, QProcess::ExitStatus exitStatus) {
emit this->exited(exitCode, exitStatus); emit this->exited(exitCode, exitStatus);
emit this->runningChanged(); emit this->runningChanged();
emit this->pidChanged();
} }
void Process::onErrorOccurred(QProcess::ProcessError error) { void Process::onErrorOccurred(QProcess::ProcessError error) {