mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 18:09:59 +03:00
The default selected version is now the current stable version.
Resolves JIRA issue MMC-10: https://jira.forkk.net/browse/MMC-10
This commit is contained in:
parent
7e3592bee8
commit
fb0432bf0b
4 changed files with 15 additions and 2 deletions
|
|
@ -92,6 +92,17 @@ void MinecraftVersionList::sort()
|
|||
endResetModel();
|
||||
}
|
||||
|
||||
InstVersion *MinecraftVersionList::getLatestStable() const
|
||||
{
|
||||
for (int i = 0; i < m_vlist.length(); i++)
|
||||
{
|
||||
if (((MinecraftVersion *)m_vlist.at(i))->versionType() == MinecraftVersion::CurrentStable)
|
||||
{
|
||||
return m_vlist.at(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MinecraftVersionList &MinecraftVersionList::getMainList()
|
||||
{
|
||||
return mcVList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue