refactor(test): fix loading mod metadata setting
This commit is contained in:
parent
e843b8e188
commit
8856c8cd62
14 changed files with 28 additions and 25 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "ModPage.h"
|
||||
#include "Application.h"
|
||||
#include "ui_ModPage.h"
|
||||
|
||||
#include <QKeyEvent>
|
||||
|
@ -150,7 +151,8 @@ void ModPage::onModSelected()
|
|||
if (dialog->isModSelected(current.name, version.fileName)) {
|
||||
dialog->removeSelectedMod(current.name);
|
||||
} else {
|
||||
dialog->addSelectedMod(current.name, new ModDownloadTask(current, version, dialog->mods));
|
||||
bool is_indexed = !APPLICATION->settings()->get("ModMetadataDisabled").toBool();
|
||||
dialog->addSelectedMod(current.name, new ModDownloadTask(current, version, dialog->mods, is_indexed));
|
||||
}
|
||||
|
||||
updateSelectionButton();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue