bug fix:#I64FWN【主要】【电源管理】未连接电源,登录提示系统进入低电量状态,实际电量90%
This commit is contained in:
parent
268e57d4ed
commit
b0af34b40c
|
@ -30,6 +30,7 @@ BatteryInfo::BatteryInfo(QObject *parent)
|
|||
QString batteryPath = m_upower->getBatteryPath();
|
||||
m_iface = QSharedPointer<QDBusInterface>(
|
||||
new QDBusInterface(UPOWER_SERVICE, batteryPath, FREEDESKTOP_UPOWER, QDBusConnection::systemBus()));
|
||||
m_percentage = Percentage();
|
||||
initBatteryInfo(m_bat1);
|
||||
showBatteryInfo();
|
||||
initConnect(batteryPath);
|
||||
|
|
Loading…
Reference in New Issue