mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-16 08:00:35 +01:00
- [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:
parent
1322ad36b3
commit
2239d4fcbb
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user