| 280 | |
| 281 | |
| 282 | void ModPage::updateSelectionButton() |
| 283 | { |
| 284 | if (!isOpened || selectedVersion < 0) { |
| 285 | ui->modSelectionButton->setEnabled(false); |
| 286 | return; |
| 287 | } |
| 288 | |
| 289 | ui->modSelectionButton->setEnabled(true); |
| 290 | auto& version = current.versions[selectedVersion]; |
| 291 | if (!dialog->isModSelected(current.name, version.fileName)) { |
| 292 | ui->modSelectionButton->setText(tr("Select mod for download")); |
| 293 | } else { |
| 294 | ui->modSelectionButton->setText(tr("Deselect mod for download")); |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | void ModPage::updateUi() |
| 299 | { |
nothing calls this directly
no test coverage detected