forked from Shinonome/dots-hyprland
quickshell: fix qml null safety and monitor property errors
This commit is contained in:
@@ -20,7 +20,7 @@ Item {
|
||||
property var windows: HyprlandData.windowList
|
||||
property var windowByAddress: HyprlandData.windowByAddress
|
||||
property var windowAddresses: HyprlandData.addresses
|
||||
property var monitorData: HyprlandData.monitors.find(m => m.id === root.monitor.id)
|
||||
property var monitorData: HyprlandData.monitors.find(m => m.id === root.monitor?.id)
|
||||
property real scale: Config.options.overview.scale
|
||||
property color activeBorderColor: Appearance.colors.colSecondary
|
||||
|
||||
@@ -149,7 +149,7 @@ Item {
|
||||
const address = `0x${toplevel.HyprlandToplevel.address}`
|
||||
var win = windowByAddress[address]
|
||||
const inWorkspaceGroup = (root.workspaceGroup * root.workspacesShown < win?.workspace?.id && win?.workspace?.id <= (root.workspaceGroup + 1) * root.workspacesShown)
|
||||
const inMonitor = root.monitor.id === win.monitor
|
||||
const inMonitor = root.monitor?.id === win.monitor
|
||||
return inWorkspaceGroup && inMonitor;
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user