aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-04-17 20:03:49 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-04-21 18:42:06 +0300
commit31e84780a882622385dda0c574c128046d625eba (patch)
tree01805071e856146a78eb766cff3c23ab63424dcc /launcher/ui
parentf3f8f3574af20e279e41d3a02f337d5d59fc4a7e (diff)
downloadPrismLauncher-31e84780a882622385dda0c574c128046d625eba.tar.gz
PrismLauncher-31e84780a882622385dda0c574c128046d625eba.tar.bz2
PrismLauncher-31e84780a882622385dda0c574c128046d625eba.zip
Hope to fix windows build errors
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui')
-rw-r--r--launcher/ui/dialogs/ResourceDownloadDialog.cpp4
-rw-r--r--launcher/ui/pages/modplatform/ResourcePage.cpp3
2 files changed, 1 insertions, 6 deletions
diff --git a/launcher/ui/dialogs/ResourceDownloadDialog.cpp b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
index fe4692d6..610f2449 100644
--- a/launcher/ui/dialogs/ResourceDownloadDialog.cpp
+++ b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
@@ -140,9 +140,7 @@ void ResourceDownloadDialog::confirm()
for (auto dep : dependencies) {
dep.is_currently_selected = true;
- auto pack = ModPlatform::IndexedPack{
- .addonId = dep.addonId, .provider = ModPlatform::ResourceProvider::FLAME, .name = dep.fileName, .slug = dep.fileName
- };
+ auto pack = ModPlatform::IndexedPack{ dep.addonId, ModPlatform::ResourceProvider::FLAME, dep.fileName, dep.fileName };
m_selected.insert(dep.fileName, makeShared<ResourceDownloadTask>(pack, dep, getBaseModel(), true));
}
diff --git a/launcher/ui/pages/modplatform/ResourcePage.cpp b/launcher/ui/pages/modplatform/ResourcePage.cpp
index ec43521f..02412fd9 100644
--- a/launcher/ui/pages/modplatform/ResourcePage.cpp
+++ b/launcher/ui/pages/modplatform/ResourcePage.cpp
@@ -43,9 +43,6 @@
#include <QKeyEvent>
#include "Markdown.h"
-#include "ResourceDownloadTask.h"
-
-#include "minecraft/MinecraftInstance.h"
#include "ui/dialogs/ResourceDownloadDialog.h"
#include "ui/pages/modplatform/ResourceModel.h"