summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-07-10 19:51:06 -0700
committerDentomologist <dentomologist@gmail.com>2026-07-11 12:49:35 -0700
commita18fd2d21b82f33c5ec603d0a76e136db0e30a4c (patch)
tree3bb263487e4a968085a86d92630664f1fd921e9d /Source/Core
parent37dd6c287eac591b4d97cbfd90d16c2093b68020 (diff)
ResourcePackManager: Erase Removed pack from list and table
Erase a removed pack from ResourcePack::<anonymous namespace>::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.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/ResourcePackManager.cpp7
1 files 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();
}