mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
io/process: emit read for data remaining in buffer on exit
This commit is contained in:
parent
89e796cb21
commit
c4a7d16478
3 changed files with 8 additions and 0 deletions
|
|
@ -254,6 +254,8 @@ void Process::onStarted() {
|
|||
void Process::onFinished(qint32 exitCode, QProcess::ExitStatus exitStatus) {
|
||||
this->process->deleteLater();
|
||||
this->process = nullptr;
|
||||
if (this->mStdoutParser) this->mStdoutParser->streamEnded(this->stdoutBuffer);
|
||||
if (this->mStderrParser) this->mStderrParser->streamEnded(this->stderrBuffer);
|
||||
this->stdoutBuffer.clear();
|
||||
this->stderrBuffer.clear();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue