Skip to content

Commit

Permalink
Merge pull request #122 from Video-Nomad/fix/glazewm-startup-popup-fix
Browse files Browse the repository at this point in the history
fix(widget/glazewm): brief window popup fixed
amnweb authored Jan 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents dc98952 + b11e5e4 commit 0562511
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
@@ -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(
@@ -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

0 comments on commit 0562511

Please sign in to comment.