Don't lose the library settings when opening the settings dialog and accepting it without navigating to the Library tab.
This commit is contained in:
parent
4eedddd57c
commit
3400f2b947
|
@ -85,6 +85,10 @@ void LibraryConfig::Save() {
|
|||
}
|
||||
|
||||
void LibraryConfig::showEvent(QShowEvent *) {
|
||||
Load();
|
||||
}
|
||||
|
||||
void LibraryConfig::Load() {
|
||||
QSettings s;
|
||||
s.beginGroup(LibraryView::kSettingsGroup);
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ class LibraryConfig : public QWidget {
|
|||
void SetModel(LibraryDirectoryModel* model);
|
||||
|
||||
public slots:
|
||||
void Load();
|
||||
void Save();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -246,6 +246,8 @@ void SettingsDialog::showEvent(QShowEvent*) {
|
|||
ui_.notifications_bg_preset->setItemData(2, QColor(color), Qt::DecorationRole);
|
||||
UpdatePopupVisible();
|
||||
|
||||
ui_.library_config->Load();
|
||||
|
||||
loading_settings_ = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue