NAT Playground use ui for log

This commit is contained in:
2022-06-27 18:38:20 +00:00
parent a02ed11898
commit 5175622374
3 changed files with 14 additions and 6 deletions

View File

@@ -21,10 +21,7 @@
(.urlDecode (url.withoutDirectory))
// Some symbols shouldn't be decoded because they're invalid in file systems!
"\"" "%22"))]
// TODO write a macro that either does both print and displayMessage if a ui is available
(when ui
(ui.displayMessage "Downloading $title image: $url"))
(print url "downloading")
(log ui "Downloading $title image: $url")
(assertProcess "curl" ["--output" filePath url])
filePath)))
// Trigger the creation of a new Images component including the wikipedia images