Merge pull request #316 from Scrumplex/fix-disabled-controls
This commit is contained in:
commit
f22cd0e8c7
@ -244,10 +244,7 @@ void ModFolderPage::on_RunningState_changed(bool running)
|
||||
return;
|
||||
}
|
||||
m_controlsEnabled = !running;
|
||||
ui->actionAdd->setEnabled(m_controlsEnabled);
|
||||
ui->actionDisable->setEnabled(m_controlsEnabled);
|
||||
ui->actionEnable->setEnabled(m_controlsEnabled);
|
||||
ui->actionRemove->setEnabled(m_controlsEnabled);
|
||||
ui->actionsToolbar->setEnabled(m_controlsEnabled);
|
||||
}
|
||||
|
||||
bool ModFolderPage::shouldDisplay() const
|
||||
|
@ -212,6 +212,8 @@ void VersionPage::updateVersionControls()
|
||||
// FIXME: this is a dirty hack
|
||||
auto minecraftVersion = Version(m_profile->getComponentVersion("net.minecraft"));
|
||||
|
||||
ui->actionInstall_Forge->setEnabled(controlsEnabled);
|
||||
|
||||
bool supportsFabric = minecraftVersion >= Version("1.14");
|
||||
ui->actionInstall_Fabric->setEnabled(controlsEnabled && supportsFabric);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user