From a6ecf107b3c1f61183cab9b3a65ed24b5147ba99 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 9 Jun 2025 23:04:35 +0200 Subject: [PATCH] quickshell: fix some warnings --- .../modules/notificationPopup/NotificationPopup.qml | 2 +- .config/quickshell/modules/overview/Overview.qml | 4 ++-- .config/quickshell/modules/sidebarLeft/Anime.qml | 4 +++- .config/quickshell/services/Audio.qml | 3 --- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.config/quickshell/modules/notificationPopup/NotificationPopup.qml b/.config/quickshell/modules/notificationPopup/NotificationPopup.qml index 122489d88..fb046343d 100644 --- a/.config/quickshell/modules/notificationPopup/NotificationPopup.qml +++ b/.config/quickshell/modules/notificationPopup/NotificationPopup.qml @@ -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 diff --git a/.config/quickshell/modules/overview/Overview.qml b/.config/quickshell/modules/overview/Overview.qml index 6fa85e891..d3e4e4567 100644 --- a/.config/quickshell/modules/overview/Overview.qml +++ b/.config/quickshell/modules/overview/Overview.qml @@ -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) => { diff --git a/.config/quickshell/modules/sidebarLeft/Anime.qml b/.config/quickshell/modules/sidebarLeft/Anime.qml index acc1af4fe..444d3f052 100644 --- a/.config/quickshell/modules/sidebarLeft/Anime.qml +++ b/.config/quickshell/modules/sidebarLeft/Anime.qml @@ -562,8 +562,10 @@ Item { text: "•" } - Rectangle { // NSFW toggle + Item { // NSFW toggle + visible: width > 0 implicitWidth: switchesRow.implicitWidth + Layout.fillHeight: true RowLayout { id: switchesRow diff --git a/.config/quickshell/services/Audio.qml b/.config/quickshell/services/Audio.qml index dd46f0fbb..2fd5e0cac 100644 --- a/.config/quickshell/services/Audio.qml +++ b/.config/quickshell/services/Audio.qml @@ -19,9 +19,6 @@ Singleton { PwObjectTracker { objects: [sink, source] - Component.onCompleted: { - sink.audio.volume = sink.audio.volume; // Trigger initial volume change - } } Connections { // Protection against sudden volume changes