mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: use correct power supply property
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d4b909962e
commit
74944b18f7
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ bool Battery::isRechargeable() const
|
|||
|
||||
bool Battery::isPowerSupply() const
|
||||
{
|
||||
return (m_device->deviceProperty("POWER_SUPPLY_CURRENT_NOW").toInt() == 1);
|
||||
return (m_device->deviceProperty("POWER_SUPPLY_PRESENT").toInt() == 1);
|
||||
}
|
||||
|
||||
Solid::Battery::ChargeState Battery::chargeState() const
|
||||
|
|
Loading…
Add table
Reference in a new issue