Show no loader selected message when add instance window first opens

This resolves an issue where the message only shows when selecting a mod loader and then selecting "None" again.
This commit is contained in:
Kenneth Chew
2022-04-05 20:27:31 -04:00
parent 7aeccbb6b0
commit 2cb242e9b3
3 changed files with 8 additions and 1 deletions

View File

@ -121,6 +121,7 @@ void VanillaPage::loaderFilterChanged()
ui->loaderVersionList->setExactFilter(BaseVersionList::ParentVersionRole, "AAA"); // empty list
// TODO: The below message does not show when the add instance window is first opened. This should be fixed.
ui->loaderVersionList->setEmptyString(tr("No mod loader is selected."));
ui->loaderVersionList->setEmptyMode(VersionListView::String);
return;
}
else if(ui->forgeFilter->isChecked())