diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/config.cpp | 1 | ||||
| -rw-r--r-- | src/yuzu/game_list.cpp | 1 | ||||
| -rw-r--r-- | src/yuzu/game_list.h | 1 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 4 |
4 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 31209fb2e..db68ed259 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp | |||
| @@ -1103,6 +1103,7 @@ void Config::SaveValues() { | |||
| 1103 | SaveRendererValues(); | 1103 | SaveRendererValues(); |
| 1104 | SaveAudioValues(); | 1104 | SaveAudioValues(); |
| 1105 | SaveSystemValues(); | 1105 | SaveSystemValues(); |
| 1106 | qt_config->sync(); | ||
| 1106 | } | 1107 | } |
| 1107 | 1108 | ||
| 1108 | void Config::SaveAudioValues() { | 1109 | void Config::SaveAudioValues() { |
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 22aa19c56..c21828b1d 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -870,6 +870,7 @@ void GameList::ToggleFavorite(u64 program_id) { | |||
| 870 | tree_view->setRowHidden(0, item_model->invisibleRootItem()->index(), true); | 870 | tree_view->setRowHidden(0, item_model->invisibleRootItem()->index(), true); |
| 871 | } | 871 | } |
| 872 | } | 872 | } |
| 873 | SaveConfig(); | ||
| 873 | } | 874 | } |
| 874 | 875 | ||
| 875 | void GameList::AddFavorite(u64 program_id) { | 876 | void GameList::AddFavorite(u64 program_id) { |
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h index f7ff93ed9..64e5af4c1 100644 --- a/src/yuzu/game_list.h +++ b/src/yuzu/game_list.h | |||
| @@ -122,6 +122,7 @@ signals: | |||
| 122 | void AddDirectory(); | 122 | void AddDirectory(); |
| 123 | void ShowList(bool show); | 123 | void ShowList(bool show); |
| 124 | void PopulatingCompleted(); | 124 | void PopulatingCompleted(); |
| 125 | void SaveConfig(); | ||
| 125 | 126 | ||
| 126 | private slots: | 127 | private slots: |
| 127 | void OnItemExpanded(const QModelIndex& item); | 128 | void OnItemExpanded(const QModelIndex& item); |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index a1c18ff90..c2542c3ba 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1271,6 +1271,7 @@ void GMainWindow::ConnectWidgetEvents() { | |||
| 1271 | connect(game_list, &GameList::ShowList, this, &GMainWindow::OnGameListShowList); | 1271 | connect(game_list, &GameList::ShowList, this, &GMainWindow::OnGameListShowList); |
| 1272 | connect(game_list, &GameList::PopulatingCompleted, | 1272 | connect(game_list, &GameList::PopulatingCompleted, |
| 1273 | [this] { multiplayer_state->UpdateGameList(game_list->GetModel()); }); | 1273 | [this] { multiplayer_state->UpdateGameList(game_list->GetModel()); }); |
| 1274 | connect(game_list, &GameList::SaveConfig, this, &GMainWindow::OnSaveConfig); | ||
| 1274 | 1275 | ||
| 1275 | connect(game_list, &GameList::OpenPerGameGeneralRequested, this, | 1276 | connect(game_list, &GameList::OpenPerGameGeneralRequested, this, |
| 1276 | &GMainWindow::OnGameListOpenPerGameProperties); | 1277 | &GMainWindow::OnGameListOpenPerGameProperties); |
| @@ -2654,6 +2655,8 @@ void GMainWindow::OnGameListAddDirectory() { | |||
| 2654 | } else { | 2655 | } else { |
| 2655 | LOG_WARNING(Frontend, "Selected directory is already in the game list"); | 2656 | LOG_WARNING(Frontend, "Selected directory is already in the game list"); |
| 2656 | } | 2657 | } |
| 2658 | |||
| 2659 | OnSaveConfig(); | ||
| 2657 | } | 2660 | } |
| 2658 | 2661 | ||
| 2659 | void GMainWindow::OnGameListShowList(bool show) { | 2662 | void GMainWindow::OnGameListShowList(bool show) { |
| @@ -3380,6 +3383,7 @@ void GMainWindow::OnConfigureTas() { | |||
| 3380 | return; | 3383 | return; |
| 3381 | } else if (result == QDialog::Accepted) { | 3384 | } else if (result == QDialog::Accepted) { |
| 3382 | dialog.ApplyConfiguration(); | 3385 | dialog.ApplyConfiguration(); |
| 3386 | OnSaveConfig(); | ||
| 3383 | } | 3387 | } |
| 3384 | } | 3388 | } |
| 3385 | 3389 | ||