fix(ui): change text in selection button when there's no valid version
This commit is contained in:
		@@ -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();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user