quickshell: fix some warnings

This commit is contained in:
end-4
2025-06-09 23:04:35 +02:00
parent 56958236e2
commit a6ecf107b3
4 changed files with 6 additions and 7 deletions
@@ -15,7 +15,7 @@ Scope {
PanelWindow {
id: root
visible: (Notifications.popupList.length > 0)
screen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name)
screen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name) ?? null
WlrLayershell.namespace: "quickshell:notificationPopup"
WlrLayershell.layer: WlrLayer.Overlay
@@ -92,8 +92,8 @@ Scope {
visible: GlobalStates.overviewOpen
anchors {
horizontalCenter: parent.horizontalCenter
top: !ConfigOptions.bar.bottom ? parent.top : null
bottom: ConfigOptions.bar.bottom ? parent.bottom : null
top: !ConfigOptions.bar.bottom ? parent.top : undefined
bottom: ConfigOptions.bar.bottom ? parent.bottom : undefined
}
Keys.onPressed: (event) => {
@@ -562,8 +562,10 @@ Item {
text: "•"
}
Rectangle { // NSFW toggle
Item { // NSFW toggle
visible: width > 0
implicitWidth: switchesRow.implicitWidth
Layout.fillHeight: true
RowLayout {
id: switchesRow