1
0
Fork 0

- [GUI] prevented error when downloading binary files (like bitmap images) or other files that are not in gemtext format or, finally, can not be rendered in tinmop.

This commit is contained in:
cage 2023-08-14 19:05:27 +02:00
parent 1322ad36b3
commit 2239d4fcbb
1 changed files with 11 additions and 10 deletions

View File

@ -16,16 +16,17 @@
(gui:treeview-delete-all tree)
(setf rows new-rows)
(loop for row in rows do
(let* ((iri (getf row :download-iri))
(stream-client-wrapper (client-main-window:find-db-stream-url iri))
(stream-status (to-s (client-main-window::status stream-client-wrapper)))
(tree-row (make-instance 'gui:tree-item
:id iri
:text iri
:column-values
(list stream-status
(to-s (getf row :octect-count)))
:index gui:+treeview-last-index+)))
(a:when-let* ((iri (getf row :download-iri))
(stream-client-wrapper (client-main-window:find-db-stream-url iri))
(stream-status (to-s (client-main-window::status
stream-client-wrapper)))
(tree-row (make-instance 'gui:tree-item
:id iri
:text iri
:column-values
(list stream-status
(to-s (getf row :octect-count)))
:index gui:+treeview-last-index+)))
(gui:treeview-insert-item tree :item tree-row)))
(gui:treeview-refit-columns-width (gui-goodies:tree stream-table))
stream-table))