This commit is contained in:
piotr
2024-07-16 01:45:30 +02:00
parent 82d6c397e5
commit dadebe681f

View File

@@ -347,10 +347,11 @@ def instantiate_content(panel, container, content_list, icons_path=""):
if item == "hyprland-workspaces": if item == "hyprland-workspaces":
if his: if his:
if "hyprland-workspaces" in panel: if "hyprland-workspaces" in panel:
# workspaces = HyprlandWorkspaces(panel["hyprland-workspaces"], monitors, workspaces, clients, print("activeworkspace:", activeworkspace)
# activewindow, activeworkspaces, icons_path=icons_path) workspaces = HyprlandWorkspaces(panel["hyprland-workspaces"], monitors, workspaces, clients,
# container.pack_start(workspaces, False, False, panel["items-padding"]) activewindow, activeworkspace, icons_path=icons_path)
# common.h_workspaces_list.append(workspaces) container.pack_start(workspaces, False, False, panel["items-padding"])
common.h_workspaces_list.append(workspaces)
print("Successfully instantiated hyprland-workspaces") print("Successfully instantiated hyprland-workspaces")
else: else:
print("'hyprland-workspaces' not defined in this panel instance") print("'hyprland-workspaces' not defined in this panel instance")