diff options
| author | Gingeh <39150378+Gingeh@users.noreply.github.com> | 2022-08-01 20:18:48 +1000 | 
|---|---|---|
| committer | Gingeh <39150378+Gingeh@users.noreply.github.com> | 2022-08-01 20:56:05 +1000 | 
| commit | a8dfe98b1a0a887175579e2a57dd8a00837de9fa (patch) | |
| tree | a8ed89f5ede0802f0f8c97743f2388417c7cbf5f /launcher/ui | |
| parent | b15544c163ccbca08ea498b3b3a51c82d7fb3e12 (diff) | |
| download | PrismLauncher-a8dfe98b1a0a887175579e2a57dd8a00837de9fa.tar.gz PrismLauncher-a8dfe98b1a0a887175579e2a57dd8a00837de9fa.tar.bz2 PrismLauncher-a8dfe98b1a0a887175579e2a57dd8a00837de9fa.zip | |
Disable "Check for Updates" if all mods are removed
Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
Diffstat (limited to 'launcher/ui')
| -rw-r--r-- | launcher/ui/pages/instance/ModFolderPage.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/launcher/ui/pages/instance/ModFolderPage.cpp b/launcher/ui/pages/instance/ModFolderPage.cpp index 14e1f1e5..ae96ec2f 100644 --- a/launcher/ui/pages/instance/ModFolderPage.cpp +++ b/launcher/ui/pages/instance/ModFolderPage.cpp @@ -89,6 +89,9 @@ ModFolderPage::ModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel>          connect(mods.get(), &ModFolderModel::rowsInserted, this,                  [this] { ui->actionUpdateItem->setEnabled(ui->treeView->selectionModel()->hasSelection() || !m_model->empty()); }); + +        connect(mods.get(), &ModFolderModel::rowsRemoved, this, +                [this] { ui->actionUpdateItem->setEnabled(ui->treeView->selectionModel()->hasSelection() || !m_model->empty()); });          connect(mods.get(), &ModFolderModel::updateFinished, this, [this, mods] {              ui->actionUpdateItem->setEnabled(ui->treeView->selectionModel()->hasSelection() || !m_model->empty()); | 
