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 his:
if "hyprland-workspaces" in panel:
# workspaces = HyprlandWorkspaces(panel["hyprland-workspaces"], monitors, workspaces, clients,
# activewindow, activeworkspaces, icons_path=icons_path)
# container.pack_start(workspaces, False, False, panel["items-padding"])
# common.h_workspaces_list.append(workspaces)
print("activeworkspace:", activeworkspace)
workspaces = HyprlandWorkspaces(panel["hyprland-workspaces"], monitors, workspaces, clients,
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")