retry implemented

This commit is contained in:
Zlatin Balevsky
2019-06-01 18:30:30 +01:00
parent 98ea8154a5
commit 13b3f0f63b
4 changed files with 21 additions and 4 deletions

View File

@@ -90,6 +90,12 @@ class MainFrameController {
downloader.cancel()
}
@ControllerAction
void resume() {
def downloader = selectedDownload()
downloader.resume()
}
void mvcGroupInit(Map<String, String> args) {
application.addPropertyChangeListener("core", {e->
core = e.getNewValue()

View File

@@ -99,7 +99,7 @@ class MainFrameView {
}
panel (constraints : BorderLayout.SOUTH) {
button(text: "Cancel", enabled : bind {model.cancelButtonEnabled }, cancelAction )
button("Retry", enabled : bind {model.retryButtonEnabled})
button(text: "Retry", enabled : bind {model.retryButtonEnabled}, resumeAction)
}
}
}