aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-12-04 10:17:53 -0500
committerKen Moore <ken@ixsystems.com>2017-12-04 10:17:53 -0500
commit382406869d7e8180d9131b5886a9d06ffbc65320 (patch)
tree0c510c821d03387d29ae06ed038ee3754d1bfcfb
parentMake the poppler include path "poppler/qt5/<file.h>" rather than just the file. (diff)
downloadlumina-382406869d7e8180d9131b5886a9d06ffbc65320.tar.gz
lumina-382406869d7e8180d9131b5886a9d06ffbc65320.tar.bz2
lumina-382406869d7e8180d9131b5886a9d06ffbc65320.zip
Fix up the battery notification system.
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp b/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp
index 7a6b0e7c..69ea5faa 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp
@@ -77,6 +77,7 @@ void LBattery::updateBattery(bool force){
label->setPixmap( LXDG::findIcon("battery-unknown", "battery-missing").pixmap(label->size()) );
break;
}
+ }
if(icon<iconOld && icon==0){
//Play some audio warning chime when
bool playaudio = sessionsettings->value("PlayBatteryLowAudio",true).toBool();
@@ -97,7 +98,6 @@ void LBattery::updateBattery(bool force){
else{ tt = QString( tr("%1 % (%2 Remaining)") ).arg(QString::number(charge), getRemainingTime() ); }
label->setToolTip(tt);
}
-}
QString LBattery::getRemainingTime(){
int secs = LOS::batterySecondsLeft();
bgstack15