diff --git a/rpcs3/rpcs3qt/gui_settings.h b/rpcs3/rpcs3qt/gui_settings.h index b9194c9e80..5023580b38 100644 --- a/rpcs3/rpcs3qt/gui_settings.h +++ b/rpcs3/rpcs3qt/gui_settings.h @@ -214,7 +214,8 @@ namespace gui const gui_save tr_games_state = gui_save(trophy, "games_state", QByteArray()); const gui_save tr_trophy_state = gui_save(trophy, "trophy_state", QByteArray()); - const gui_save pm_geometry = gui_save(patches, "geometry", QByteArray()); + const gui_save pm_show_owned = gui_save(patches, "show_owned", false); + const gui_save pm_geometry = gui_save(patches, "geometry", QByteArray()); const gui_save pm_splitter_state = gui_save(patches, "splitter_state", QByteArray()); const gui_save sd_geometry = gui_save(savedata, "geometry", QByteArray()); diff --git a/rpcs3/rpcs3qt/patch_manager_dialog.cpp b/rpcs3/rpcs3qt/patch_manager_dialog.cpp index 17b848695e..817747b38f 100644 --- a/rpcs3/rpcs3qt/patch_manager_dialog.cpp +++ b/rpcs3/rpcs3qt/patch_manager_dialog.cpp @@ -60,8 +60,15 @@ patch_manager_dialog::patch_manager_dialog(std::shared_ptr gui_set // Load config for special settings patch_engine::load_config(m_legacy_patches_enabled); - ui->cb_enable_legacy_patches->setChecked(m_legacy_patches_enabled); + // Load gui settings + m_show_owned_games_only = m_gui_settings->GetValue(gui::pm_show_owned).toBool(); + + // Initialize gui controls + ui->cb_enable_legacy_patches->setChecked(m_legacy_patches_enabled); + ui->cb_owned_games_only->setChecked(m_show_owned_games_only); + + // Create connects connect(ui->patch_filter, &QLineEdit::textChanged, this, &patch_manager_dialog::filter_patches); connect(ui->patch_tree, &QTreeWidget::currentItemChanged, this, &patch_manager_dialog::on_item_selected); connect(ui->patch_tree, &QTreeWidget::itemChanged, this, &patch_manager_dialog::on_item_changed); @@ -774,6 +781,7 @@ void patch_manager_dialog::on_legacy_patches_enabled(int state) void patch_manager_dialog::on_show_owned_games_only(int state) { m_show_owned_games_only = state == Qt::CheckState::Checked; + m_gui_settings->SetValue(gui::pm_show_owned, m_show_owned_games_only); filter_patches(ui->patch_filter->text()); }