aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance
diff options
context:
space:
mode:
authorGingeh <39150378+Gingeh@users.noreply.github.com>2022-08-01 20:18:48 +1000
committerGingeh <39150378+Gingeh@users.noreply.github.com>2022-08-01 20:56:05 +1000
commita8dfe98b1a0a887175579e2a57dd8a00837de9fa (patch)
treea8ed89f5ede0802f0f8c97743f2388417c7cbf5f /launcher/ui/pages/instance
parentb15544c163ccbca08ea498b3b3a51c82d7fb3e12 (diff)
downloadPrismLauncher-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/pages/instance')
-rw-r--r--launcher/ui/pages/instance/ModFolderPage.cpp3
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());