Skip to content

Commit

Permalink
Notifications: do not send notification about successful writing twice
Browse files Browse the repository at this point in the history
We already handle case where the helper successfully writes the image before it exits
so there is no reason to handle it again and send the same notification
  • Loading branch information
grulja committed May 14, 2021
1 parent 6e36a75 commit c6f0cc9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/linuxdrivemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,7 @@ void LinuxDrive::onFinished(int exitCode, QProcess::ExitStatus status) {
m_image->setStatus(ReleaseVariant::FAILED);
}
}
else {
Notifications::notify(tr("Finished!"), tr("Writing %1 was successful").arg(m_image->fullName()));
m_image->setStatus(ReleaseVariant::FINISHED);
}

if (m_process) {
m_process->deleteLater();
m_process = nullptr;
Expand Down

0 comments on commit c6f0cc9

Please sign in to comment.