You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a little music widget for my taskbar, if there's no music status then it gets hidden, but the logs are spammed with failure to access the image file:
2023-09-28T17:11:44.996Z ERROR eww::error_handling_ctx > Error while updating UI after state change
Caused by:
Failed to open file “”: No such file or directory
trying both leaving a json null value or an empty string fails. My current plan is to find some image to put there as a default, but since it's not even shown it feels like this shouldn't be necessary. (Unless there's something simple I'm missing that allows for actually dynamically adding the widget instead of just making it invisible).
(defwidget music []
(box :orientation "v" :class "music" :space-evenly false :visible {music != "{}"}
... other sub widgets ...
(image :class "albumart" :image-width 50 :path {music?.albumart ?: ""})
... other sub widgets ...
)
)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm writing a little music widget for my taskbar, if there's no music status then it gets hidden, but the logs are spammed with failure to access the image file:
trying both leaving a json
null
value or an empty string fails. My current plan is to find some image to put there as a default, but since it's not even shown it feels like this shouldn't be necessary. (Unless there's something simple I'm missing that allows for actually dynamically adding the widget instead of just making it invisible).Beta Was this translation helpful? Give feedback.
All reactions