Skip to content

Commit

Permalink
fix(widget/custom): improve visibility handling for active widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Jan 25, 2025
1 parent eaa5da8 commit 4c61515
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/widgets/yasb/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ def _update_label(self):
active_widgets[widget_index].setText(self._truncate_label(part.format(data=self._exec_data)))
if self._hide_empty:
if self._exec_data:
active_widgets[widget_index].show()
self.setVisible(True)
#active_widgets[widget_index].show()
else:
active_widgets[widget_index].hide()
self.setVisible(False)
#active_widgets[widget_index].hide()
widget_index += 1
except Exception:
active_widgets[widget_index].setText(self._truncate_label(part))
Expand Down

0 comments on commit 4c61515

Please sign in to comment.