Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Jan 25, 2025
2 parents 636c8de + 0562511 commit fc7eb86
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 fc7eb86

Please # to comment.