Skip to content

Commit

Permalink
Re-add delayed writing support
Browse files Browse the repository at this point in the history
  • Loading branch information
squimrel committed Jun 9, 2017
1 parent 5ab3c3b commit 827729c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/DownloadDialog.qml
Expand Up @@ -69,6 +69,8 @@ Dialog {
onStatusChanged: {
if ([Variant.FINISHED, Variant.FAILED, Variant.FAILED_DOWNLOAD].indexOf(releases.variant.status) >= 0)
writeImmediately.checked = false
else if (drives.selected && writeImmediately.checked && releases.variant.status === Variant.READY)
drives.selected.write(releases.variant)
}
}

Expand Down Expand Up @@ -373,8 +375,6 @@ Dialog {
onCheckedChanged: {
if (drives.selected) {
drives.selected.cancel()
if (checked)
drives.selected.write(releases.variant)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions helper/write.cpp
Expand Up @@ -165,6 +165,7 @@ void write(const QString &source, Drive *const drive) {
QTextStream out(stdout);
out << "1\n";
out.flush();
drive->umount();
if (source.endsWith(".xz"))
writeCompressed(source, drive);
else
Expand Down

0 comments on commit 827729c

Please sign in to comment.