mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Add warning dialog if there are no versions available
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -418,7 +418,14 @@ void ResourcePage::onToggle(const QModelIndex& index)
|
||||
return m_model->checkVersionFilters(version);
|
||||
});
|
||||
|
||||
if (version != pack->versions.end())
|
||||
if (version == pack->versions.end()) {
|
||||
auto errorMessage = new QMessageBox(
|
||||
QMessageBox::Warning, tr("No versions available"),
|
||||
tr("No versions for '%1' are available.\nThe author likely blocked third-party launchers.").arg(pack->name),
|
||||
QMessageBox::Ok, this);
|
||||
|
||||
errorMessage->open();
|
||||
} else
|
||||
addResourceToDialog(pack, *version);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user