mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 13:21:13 +00:00
Made SaveSettingsOnExit enabled by default now that it seems stable.
This commit is contained in:
parent
a1cc7c5422
commit
9c0695c7ab
@ -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());
|
||||
|
@ -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 =
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user