From a25e6ceee475b687f969660449eb77e598389203 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 11 Apr 2016 15:15:31 -0400 Subject: 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. --- lumina-desktop/LSession.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lumina-desktop/LSession.cpp') 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) -- cgit