mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
power: disable profile osd by default, ensure dbus activation doesnt
happen
This commit is contained in:
@@ -11,10 +11,6 @@ Singleton {
|
||||
|
||||
property bool suppressSound: true
|
||||
property bool previousPluggedState: false
|
||||
property int currentPowerProfile: -1
|
||||
property int previousPowerProfile: -1
|
||||
|
||||
signal powerProfileChanged
|
||||
|
||||
Timer {
|
||||
id: startupTimer
|
||||
@@ -24,27 +20,6 @@ Singleton {
|
||||
onTriggered: root.suppressSound = false
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: typeof PowerProfiles !== "undefined" ? PowerProfiles : null
|
||||
|
||||
function onProfileChanged() {
|
||||
if (typeof PowerProfiles !== "undefined") {
|
||||
root.previousPowerProfile = root.currentPowerProfile;
|
||||
root.currentPowerProfile = PowerProfiles.profile;
|
||||
if (root.previousPowerProfile !== -1) {
|
||||
root.powerProfileChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if (typeof PowerProfiles !== "undefined") {
|
||||
root.currentPowerProfile = PowerProfiles.profile;
|
||||
root.previousPowerProfile = PowerProfiles.profile;
|
||||
}
|
||||
}
|
||||
|
||||
readonly property string preferredBatteryOverride: Quickshell.env("DMS_PREFERRED_BATTERY")
|
||||
|
||||
// List of laptop batteries
|
||||
@@ -160,7 +135,7 @@ Singleton {
|
||||
return isCharging ? "Charging" : (isPluggedIn ? "Plugged In" : "Discharging");
|
||||
}
|
||||
|
||||
readonly property bool suggestPowerSaver: batteryAvailable && isLowBattery && UPower.onBattery && (typeof PowerProfiles !== "undefined" && PowerProfiles.profile !== PowerProfile.PowerSaver)
|
||||
readonly property bool suggestPowerSaver: false
|
||||
|
||||
readonly property var bluetoothDevices: {
|
||||
const btDevices = [];
|
||||
|
||||
Reference in New Issue
Block a user