Load versions on first edit

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-01-07 22:00:31 +02:00
parent d56d21f928
commit d94e641900
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -321,6 +321,12 @@ bool CoreModFolderPage::shouldDisplay() const
auto version = inst->getPackProfile();
ProgressDialog loadDialog(parentWidget());
auto update = inst->createUpdateTask(Net::Mode::Offline);
if (update) {
loadDialog.setSkipButton(true, tr("Abort"));
loadDialog.execWithTask(update.get());
}
if (!version)
return true;
if (!version->getComponent("net.minecraftforge"))