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 { PanelWindow {
id: root id: root
visible: (Notifications.popupList.length > 0) 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.namespace: "quickshell:notificationPopup"
WlrLayershell.layer: WlrLayer.Overlay WlrLayershell.layer: WlrLayer.Overlay
@@ -92,8 +92,8 @@ Scope {
visible: GlobalStates.overviewOpen visible: GlobalStates.overviewOpen
anchors { anchors {
horizontalCenter: parent.horizontalCenter horizontalCenter: parent.horizontalCenter
top: !ConfigOptions.bar.bottom ? parent.top : null top: !ConfigOptions.bar.bottom ? parent.top : undefined
bottom: ConfigOptions.bar.bottom ? parent.bottom : null bottom: ConfigOptions.bar.bottom ? parent.bottom : undefined
} }
Keys.onPressed: (event) => { Keys.onPressed: (event) => {
@@ -562,8 +562,10 @@ Item {
text: "•" text: "•"
} }
Rectangle { // NSFW toggle Item { // NSFW toggle
visible: width > 0
implicitWidth: switchesRow.implicitWidth implicitWidth: switchesRow.implicitWidth
Layout.fillHeight: true
RowLayout { RowLayout {
id: switchesRow id: switchesRow
-3
View File
@@ -19,9 +19,6 @@ Singleton {
PwObjectTracker { PwObjectTracker {
objects: [sink, source] objects: [sink, source]
Component.onCompleted: {
sink.audio.volume = sink.audio.volume; // Trigger initial volume change
}
} }
Connections { // Protection against sudden volume changes Connections { // Protection against sudden volume changes