From a18fd2d21b82f33c5ec603d0a76e136db0e30a4c Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Fri, 10 Jul 2026 19:51:06 -0700 Subject: [PATCH] ResourcePackManager: Erase Removed pack from list and table Erase a removed pack from ResourcePack::::packs instead of only deleting the pack file from the disk. This causes the repopulated table to actually display that the pack has been removed (which previously only happened after restarting Dolphin or hitting `Refresh`), and also removes the pack from the `Packs.ini` file. --- Source/Core/DolphinQt/ResourcePackManager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/ResourcePackManager.cpp b/Source/Core/DolphinQt/ResourcePackManager.cpp index 221a752f57..c342b29bae 100644 --- a/Source/Core/DolphinQt/ResourcePackManager.cpp +++ b/Source/Core/DolphinQt/ResourcePackManager.cpp @@ -17,6 +17,7 @@ #include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/QtUtils/NonDefaultQPushButton.h" #include "UICommon/ResourcePack/Manager.h" +#include "UICommon/ResourcePack/ResourcePack.h" ResourcePackManager::ResourcePackManager(QWidget* widget) : QDialog(widget) { @@ -245,9 +246,11 @@ void ResourcePackManager::Remove() if (box.exec() != QMessageBox::Yes) return; - const std::string selected_pack_path = - ResourcePack::GetPacks()[GetResourcePackIndex(items[0])].GetPath(); + ResourcePack::ResourcePack& selected_pack = + ResourcePack::GetPacks()[GetResourcePackIndex(items[0])]; + const std::string selected_pack_path = selected_pack.GetPath(); Uninstall(); + ResourcePack::Remove(selected_pack); File::Delete(selected_pack_path); RepopulateTable(); }