aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hl/index.cljs.hl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hl/index.cljs.hl b/src/hl/index.cljs.hl
index c0b0d34..2004b72 100644
--- a/src/hl/index.cljs.hl
+++ b/src/hl/index.cljs.hl
@@ -339,6 +339,12 @@
download-state (cell :inactive)
download-progress (cell 0)
download-object (cell nil)]
+ (add-watch result nil
+ (fn [_ _ _ new-state]
+ (when (nil? new-state)
+ (reset! download-state :inactive)
+ (reset! download-progress 0)
+ (reset! download-object nil))))
(tr
(td
(div :class "ui compact menu"