mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: 修复电量降至0%时,拔掉电源,任务栏电量显示已充满
未充电状态下,之前当可用时间为0时,设置的提示信息为已充满 Log: 修复任务栏电量显示问题 Bug: https://pms.uniontech.com/zentao/bug-view-71064.html Change-Id: I219976966e4fb9975e60e604756b68ab7f23953d
This commit is contained in:
parent
d319ba4ae8
commit
fd08fdd672
@ -280,8 +280,7 @@ void PowerPlugin::refreshTipsData()
|
||||
tips = tr("Capacity %1").arg(value);
|
||||
} else {
|
||||
if (hour == 0) {
|
||||
min == 0 ? tips = tr("Charged")
|
||||
: tips = tr("Capacity %1, %2 min remaining").arg(value).arg(min);
|
||||
tips = tr("Capacity %1, %2 min remaining").arg(value).arg(min);
|
||||
} else {
|
||||
tips = tr("Capacity %1, %2 hr %3 min remaining").arg(value).arg(hour).arg(min);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user