mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
quickshell: fix some warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user