aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-11 15:15:31 -0400
committerKen Moore <moorekou@gmail.com>2016-04-11 15:15:31 -0400
commita25e6ceee475b687f969660449eb77e598389203 (patch)
treef9492974b3aa56055c75016de0e871f38994f128 /lumina-desktop/LSession.cpp
parentFix up the multi-monitor adjustment systems in the Lumina session. Now things... (diff)
downloadlumina-a25e6ceee475b687f969660449eb77e598389203.tar.gz
lumina-a25e6ceee475b687f969660449eb77e598389203.tar.bz2
lumina-a25e6ceee475b687f969660449eb77e598389203.zip
Ensure that the current audio volume gets saved to the local file on session close so that the next start of a session has the appropriate audio volume.
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index fe4c2434..d4146e77 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -182,6 +182,7 @@ void LSession::CleanupSession(){
//Create a temporary flag to prevent crash dialogs from opening during cleanup
LUtils::writeFile("/tmp/.luminastopping",QStringList() << "yes", true);
//Start the logout chimes (if necessary)
+ LOS::setAudioVolume( LOS::audioVolume() ); //make sure the audio volume is saved in the backend for the next login
bool playaudio = sessionsettings->value("PlayLogoutAudio",true).toBool();
if( playaudio ){ playAudioFile(LOS::LuminaShare()+"Logout.ogg"); }
//Stop the background system tray (detaching/closing apps as necessary)
bgstack15