fix(ui): change text in selection button when there's no valid version

This commit is contained in:
flow 2022-02-21 22:51:58 -03:00
parent f5cf4eb45f
commit 1004211a66
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469
2 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,7 @@ void FlameModPage::onSelectionChanged(QModelIndex first, QModelIndex second)
ui->versionSelectionBox->addItem(tr("No Valid Version found!"), QVariant(-1)); ui->versionSelectionBox->addItem(tr("No Valid Version found!"), QVariant(-1));
} }
ui->modSelectionButton->setText(tr("Cannot select invalid version :("));
updateSelectionButton(); updateSelectionButton();
}); });
netJob->start(); netJob->start();

View File

@ -137,6 +137,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second)
ui->versionSelectionBox->addItem(tr("No Valid Version found !"), QVariant(-1)); ui->versionSelectionBox->addItem(tr("No Valid Version found !"), QVariant(-1));
} }
ui->modSelectionButton->setText(tr("Cannot select invalid version :("));
updateSelectionButton(); updateSelectionButton();
}); });