Fix uplaod item delete, pause and cancel bugs

This commit is contained in:
miruka
2019-12-06 08:59:35 -04:00
parent e51f1f2c79
commit 8ae4bbb6cf
3 changed files with 7 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ Rectangle {
// immediate visual feedback
hideBind.when = true
// Python will delete this model item on cancel
py.setattr(model.monitor, "cancel", true)
py.call(py.getattr(model.task, "cancel"))
}
Layout.preferredWidth: theme.baseElementsHeight
@@ -188,7 +188,7 @@ Rectangle {
onClicked: {
delegate.guiPaused = ! delegate.guiPaused
py.setattr(
model.monitor, "pause", model.status !== "Paused",
model.monitor, "pause", delegate.guiPaused,
)
}