aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-04-27 01:33:46 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-04-27 01:33:46 +0300
commit248920a2211db0c55d01273cc36c735a629b0325 (patch)
tree575be3cfe5443b8fb8eb448e6cdf6160719d3321 /launcher/ui/dialogs
parentf738d7566e45f618634c4d40ec45f78f96fac588 (diff)
downloadPrismLauncher-248920a2211db0c55d01273cc36c735a629b0325.tar.gz
PrismLauncher-248920a2211db0c55d01273cc36c735a629b0325.tar.bz2
PrismLauncher-248920a2211db0c55d01273cc36c735a629b0325.zip
Removed extra code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/dialogs')
-rw-r--r--launcher/ui/dialogs/ResourceDownloadDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/dialogs/ResourceDownloadDialog.cpp b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
index 562dda33..4ba38374 100644
--- a/launcher/ui/dialogs/ResourceDownloadDialog.cpp
+++ b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
@@ -161,8 +161,8 @@ void ResourceDownloadDialog::addResource(ModPlatform::IndexedPack& pack, ModPlat
void ResourceDownloadDialog::removeResource(ModPlatform::IndexedPack& pack, ModPlatform::IndexedVersion& ver)
{
- dynamic_cast<ResourcePage*>(m_container->getPage(Modrinth::id()))->removeResourceFromPage(pack.name);
- dynamic_cast<ResourcePage*>(m_container->getPage(Flame::id()))->removeResourceFromPage(pack.name);
+ for (auto page : m_container->getPages())
+ static_cast<ResourcePage*>(page)->removeResourceFromPage(pack.name);
// Deselect the new version too, since all versions of that pack got removed.
ver.is_currently_selected = false;