mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-01-07 09:54:30 +00:00
NOISSUE Include the modpack version in instance title
This commit is contained in:
parent
ddc094b76b
commit
65a4f8919a
@ -36,6 +36,7 @@ struct Modpack {
|
||||
QString websiteUrl;
|
||||
QString author;
|
||||
QString description;
|
||||
QString currentVersion;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -165,6 +165,7 @@ void TechnicPage::suggestCurrent()
|
||||
current.websiteUrl = Json::ensureString(obj, "platformUrl", QString(), "__placeholder__");
|
||||
current.author = Json::ensureString(obj, "user", QString(), "__placeholder__");
|
||||
current.description = Json::ensureString(obj, "description", QString(), "__placeholder__");
|
||||
current.currentVersion = Json::ensureString(obj, "version", QString(), "__placeholder__");
|
||||
current.metadataLoaded = true;
|
||||
metadataLoaded();
|
||||
});
|
||||
@ -191,11 +192,11 @@ void TechnicPage::metadataLoaded()
|
||||
ui->packDescription->setHtml(text + current.description);
|
||||
if (!current.isSolder)
|
||||
{
|
||||
dialog->setSuggestedPack(current.name, new Technic::SingleZipPackInstallTask(current.url, current.minecraftVersion));
|
||||
dialog->setSuggestedPack(current.name + " " + current.currentVersion, new Technic::SingleZipPackInstallTask(current.url, current.minecraftVersion));
|
||||
}
|
||||
else
|
||||
{
|
||||
while (current.url.endsWith('/')) current.url.chop(1);
|
||||
dialog->setSuggestedPack(current.name, new Technic::SolderPackInstallTask(APPLICATION->network(), current.url + "/modpack/" + current.slug, current.minecraftVersion));
|
||||
dialog->setSuggestedPack(current.name + " " + current.currentVersion, new Technic::SolderPackInstallTask(APPLICATION->network(), current.url + "/modpack/" + current.slug, current.minecraftVersion));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user