Added missing variable from lambda capture
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
32a8d9b9c6
commit
0e57eeca69
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ ModFolderPage::ModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel>
|
|||
auto depsDisabled = APPLICATION->settings()->getSetting("ModDependenciesDisabled");
|
||||
updateWithDeps->setVisible(!depsDisabled->get().toBool());
|
||||
connect(depsDisabled.get(), &Setting::SettingChanged, this,
|
||||
[](const Setting& setting, QVariant value) { updateWithDeps->setVisible(!value.toBool()); });
|
||||
[updateWithDeps](const Setting& setting, QVariant value) { updateWithDeps->setVisible(!value.toBool()); });
|
||||
|
||||
auto actionRemoveItemMetadata = updateMenu->addAction(tr("Reset update metadata"));
|
||||
actionRemoveItemMetadata->setToolTip(tr("Remove mod's metadata"));
|
||||
connect(actionRemoveItemMetadata, &QAction::triggered, this, &ModFolderPage::deleteModMetadata);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue