diff options
author | flow <flowlnlnln@gmail.com> | 2022-11-12 12:42:26 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-12-06 17:00:33 -0300 |
commit | 38f59fdf39250af22ee8e99e8a1cbcb1f838c6d2 (patch) | |
tree | ea8b0ae69e7408353b56b2dd29d1f3ab56b2c030 /launcher/ui/pages/instance/ManagedPackPage.cpp | |
parent | 527c1113f1c92b8afe59eb0df0dbac8a1d508d98 (diff) | |
download | PrismLauncher-38f59fdf39250af22ee8e99e8a1cbcb1f838c6d2.tar.gz PrismLauncher-38f59fdf39250af22ee8e99e8a1cbcb1f838c6d2.tar.bz2 PrismLauncher-38f59fdf39250af22ee8e99e8a1cbcb1f838c6d2.zip |
fix(ManagedPackPage): add warning about old bug with pack IDs
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/pages/instance/ManagedPackPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/ManagedPackPage.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/launcher/ui/pages/instance/ManagedPackPage.cpp b/launcher/ui/pages/instance/ManagedPackPage.cpp index 45be7c71..c72b554d 100644 --- a/launcher/ui/pages/instance/ManagedPackPage.cpp +++ b/launcher/ui/pages/instance/ManagedPackPage.cpp @@ -272,6 +272,25 @@ FlameManagedPackPage::FlameManagedPackPage(BaseInstance* inst, InstanceWindow* i void FlameManagedPackPage::parseManagedPack() { qDebug() << "Parsing Flame pack"; + // We need to tell the user to redownload the pack, since we didn't save the required info previously + if (m_inst->getManagedPackID().isEmpty()) { + setFailState(); + QString message = tr( + "<h1>Hey there!</h1>" + "<h4>" + "It seems like your Pack ID is null. This is because of a bug in older versions of the launcher.<br/>" + "Unfortunately, we can't do the proper API requests without this information.<br/>" + "<br/>" + "So, in order for this feature to work, you will need to re-download the modpack from the built-in downloader.<br/>" + "<br/>" + "Don't worry though, it will ask you to update this instance instead, so you'll not lose this instance!" + "</h4>" + ); + + ui->changelogTextBrowser->setHtml(message); + return; + } + auto netJob = new NetJob(QString("Flame::PackVersions(%1)").arg(m_inst->getManagedPackName()), APPLICATION->network()); auto response = new QByteArray(); |