From cdc1a9ea68d48874e2d21ed0d8c9bb5e3b191857 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 4 Dec 2024 11:15:39 +0000 Subject: [PATCH] Fix not functioning mod updating --- launcher/modManager/cmodlistview_moc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/launcher/modManager/cmodlistview_moc.cpp b/launcher/modManager/cmodlistview_moc.cpp index 44f9ffa58..9e567a5cf 100644 --- a/launcher/modManager/cmodlistview_moc.cpp +++ b/launcher/modManager/cmodlistview_moc.cpp @@ -597,6 +597,10 @@ QStringList CModListView::getModsToInstall(QString mod) void CModListView::on_updateButton_clicked() { QString modName = ui->allModsView->currentIndex().data(ModRoles::ModNameRole).toString(); + auto targetMod = modStateModel->getMod(modName); + + if(targetMod.isUpdateAvailable()) + downloadFile(modName + ".zip", targetMod.getDownloadUrl(), modName, targetMod.getDownloadSizeBytes()); for(const auto & name : getModsToInstall(modName)) {