Skip to content

Commit

Permalink
fix(widget/glazewm): brief window popup fixed
Browse files Browse the repository at this point in the history
The brief window popup during YASB startup was fixed. It was a "setVisible(True)" call that was made before the "GlazeWM Offline" label was added to the layout that caused this. Also tidied up some visibility logic for glazewm offline label.
  • Loading branch information
Video-Nomad committed Jan 25, 2025
1 parent dc98952 commit b11e5e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/widgets/glazewm/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ def __init__(

self.offline_text = QLabel(self.label_offline)
self.offline_text.setProperty("class", "offline-status")
self.offline_text.setVisible(True)

self.widget_layout.addWidget(self.offline_text)
self.widget_layout.addWidget(self.workspace_container)

self.offline_text.setVisible(True)

self.monitor_hwnd = get_monitor_hwnd(int(QWidget.winId(self)))

self.glazewm_client = GlazewmClient(
Expand All @@ -143,8 +144,7 @@ def __init__(

def _update_connection_status(self, status: bool):
self.workspace_container.setVisible(status)
self.offline_text.setVisible(not status)
self.setVisible(status if self.hide_if_offline else True)
self.offline_text.setVisible(not status if not self.hide_if_offline else False)

def _update_workspaces(self, message: list[Monitor]):
# Find the target monitor
Expand Down

0 comments on commit b11e5e4

Please # to comment.