Made SaveSettingsOnExit enabled by default now that it seems stable.

This commit is contained in:
casey langen 2018-02-19 23:48:31 -08:00
parent a1cc7c5422
commit 9c0695c7ab
3 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ namespace musik {
}
void SavePlaybackContext(Prefs prefs, ILibraryPtr library, PlaybackService& playback) {
if (prefs->GetBool(keys::SaveSessionOnExit, false)) {
if (prefs->GetBool(keys::SaveSessionOnExit, true)) {
if (playback.GetPlaybackState() != sdk::PlaybackStopped) {
prefs->SetInt(keys::LastPlayQueueIndex, (int)playback.GetIndex());
prefs->SetDouble(keys::LastPlayQueueTime, playback.GetPosition());

View File

@ -200,7 +200,7 @@ void LibraryLayout::InitializeWindows() {
}
void LibraryLayout::LoadLastSession() {
if (this->prefs->GetBool(musik::core::prefs::keys::SaveSessionOnExit, false)) {
if (this->prefs->GetBool(musik::core::prefs::keys::SaveSessionOnExit, true)) {
const std::string type = this->prefs->GetString(keys::LastLibraryView, type::Browse);
if (type == type::Directory) {
const std::string lastDirectoryRoot =

View File

@ -627,7 +627,7 @@ void SettingsLayout::LoadPreferences() {
this->minimizeToTrayCheckbox->SetChecked(this->prefs->GetBool(cube::prefs::keys::MinimizeToTray, false));
this->startMinimizedCheckbox->SetChecked(this->prefs->GetBool(cube::prefs::keys::StartMinimized, false));
#endif
this->saveSessionCheckbox->SetChecked(this->prefs->GetBool(core::prefs::keys::SaveSessionOnExit, false));
this->saveSessionCheckbox->SetChecked(this->prefs->GetBool(core::prefs::keys::SaveSessionOnExit, true));
this->autoUpdateCheckbox->SetChecked(this->prefs->GetBool(cube::prefs::keys::AutoUpdateCheck, true));
/* output driver */