mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
Remove arbitrary height limit on notification settings
This commit is contained in:
@@ -11,7 +11,7 @@ Rectangle {
|
||||
readonly property real contentHeight: contentColumn.height + Theme.spacingL * 2
|
||||
|
||||
width: parent.width
|
||||
height: expanded ? Math.min(contentHeight, 400) : 0
|
||||
height: expanded ? contentHeight : 0
|
||||
visible: expanded
|
||||
clip: true
|
||||
radius: Theme.cornerRadius
|
||||
|
||||
@@ -13,7 +13,6 @@ Singleton {
|
||||
readonly property string preferredBatteryOverride: Quickshell.env("DMS_PREFERRED_BATTERY")
|
||||
|
||||
readonly property UPowerDevice device: {
|
||||
console.log("BatteryService: Preferred battery override:", preferredBatteryOverride)
|
||||
const preferredDev = UPower.devices.values.find(dev => dev.nativePath.toLowerCase().includes(preferredBatteryOverride.toLowerCase()))
|
||||
return preferredDev || UPower.devices.values.find(dev => dev.isLaptopBattery)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user