forked from Shinonome/dots-hyprland
quickshell: fix some warnings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user