1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Fix WorkspaceSwitcher crash: replace undefined parentScreen?.name with screenName (#527)

This commit is contained in:
Roni Laukkarinen
2025-10-22 20:34:39 +03:00
committed by GitHub
parent 1cb10e879e
commit dbc1bdeb3b

View File

@@ -18,7 +18,7 @@ Item {
property var hyprlandOverviewLoader: null
property var parentScreen: null
readonly property var sortedToplevels: {
return CompositorService.filterCurrentWorkspace(CompositorService.sortedToplevels, parentScreen?.name);
return CompositorService.filterCurrentWorkspace(CompositorService.sortedToplevels, screenName);
}
property int currentWorkspace: {
if (CompositorService.isNiri) {