removed redundant code

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-07-09 23:18:38 +03:00
parent 159f14c076
commit 308877aa8f
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -229,8 +229,6 @@ void VersionPage::updateVersionControls()
// FIXME: this is a dirty hack
auto minecraftVersion = Version(m_profile->getComponentVersion("net.minecraft"));
ui->actionInstall_Forge->setEnabled(true);
bool supportsFabric = minecraftVersion >= Version("1.14");
ui->actionInstall_Fabric->setEnabled(supportsFabric);
@ -255,13 +253,6 @@ void VersionPage::updateButtons(int row)
ui->actionEdit->setEnabled(patch && patch->isCustom());
ui->actionCustomize->setEnabled(patch && patch->isCustomizable());
ui->actionRevert->setEnabled(patch && patch->isRevertible());
ui->actionDownload_All->setEnabled(true);
ui->actionAdd_Empty->setEnabled(true);
ui->actionImport_Components->setEnabled(true);
ui->actionReload->setEnabled(true);
ui->actionReplace_Minecraft_jar->setEnabled(true);
ui->actionAdd_to_Minecraft_jar->setEnabled(true);
ui->actionAdd_Agents->setEnabled(true);
}
bool VersionPage::reloadPackProfile()