fix: disable "Download mods" button when needed

Fixes #271
This commit is contained in:
Sefa Eyeoglu 2022-03-20 15:34:13 +01:00
parent 8bc6cdf55c
commit 768007d980
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -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