aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-10-18 13:57:47 -0400
committerKen Moore <ken@ixsystems.com>2016-10-18 13:57:47 -0400
commit6d6708ee7add7951fe598e0a35467fdd00ebc7a2 (patch)
tree9c8631cc13c7f3e89dc13342662d30ce10b27dd5 /src-qt5/core/lumina-desktop/LSession.cpp
parentFix up the "loading" message on directories with no contents. (diff)
downloadlumina-6d6708ee7add7951fe598e0a35467fdd00ebc7a2.tar.gz
lumina-6d6708ee7add7951fe598e0a35467fdd00ebc7a2.tar.bz2
lumina-6d6708ee7add7951fe598e0a35467fdd00ebc7a2.zip
Adjust the icon for the battery notifications a bit.
1) for the "low" battery icon, move it down to the 5-20% range instead of 20-50%. 2) When battery is between 0-5%, change the background color of the icon to red in addition to the "warning" battery icon. 3) Play an audio file when the battery drops to the 0-5% range( <Lumina Share directory>/low-battery.ogg), if the file exists.
Diffstat (limited to 'src-qt5/core/lumina-desktop/LSession.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LSession.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp
index 9a985b3f..4e0a8f59 100644
--- a/src-qt5/core/lumina-desktop/LSession.cpp
+++ b/src-qt5/core/lumina-desktop/LSession.cpp
@@ -578,6 +578,7 @@ void LSession::systemWindow(){
//Play System Audio
void LSession::playAudioFile(QString filepath){
+ if( !QFile::exists(filepath) ){ return; }
//Setup the audio output systems for the desktop
if(DEBUG){ qDebug() << "Play Audio File"; }
if(mediaObj==0){ qDebug() << " - Initialize media player"; mediaObj = new QMediaPlayer(); }
bgstack15