diff options
author | Ken Moore <moorekou@gmail.com> | 2016-04-11 15:15:31 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-04-11 15:15:31 -0400 |
commit | a25e6ceee475b687f969660449eb77e598389203 (patch) | |
tree | f9492974b3aa56055c75016de0e871f38994f128 /lumina-desktop | |
parent | Fix up the multi-monitor adjustment systems in the Lumina session. Now things... (diff) | |
download | lumina-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')
-rw-r--r-- | lumina-desktop/LSession.cpp | 1 |
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) |