This commit is contained in:
piotr
2024-07-16 01:35:05 +02:00
parent 5156ca2d51
commit a3ef3ee8fd
2 changed files with 2 additions and 4 deletions

View File

@@ -351,6 +351,7 @@ def instantiate_content(panel, container, content_list, icons_path=""):
activewindow, activeworkspace, icons_path=icons_path)
container.pack_start(workspaces, False, False, panel["items-padding"])
common.h_workspaces_list.append(workspaces)
print("Successfully instantiated hyprland-workspaces")
else:
print("'hyprland-workspaces' not defined in this panel instance")
else:

View File

@@ -115,10 +115,7 @@ class HyprlandWorkspaces(Gtk.Box):
pinned = activewindow["pinned"]
# fix #310
if activeworkspace and "id" in activeworkspace:
active_ws = activeworkspace["id"]
else:
active_ws = 0
active_ws = activeworkspace["id"]
for num in self.ws_nums:
if num in occupied_workspaces or self.settings["show-empty"]: