Fix unused capture

This commit is contained in:
Nicolas Werner 2020-12-18 14:35:41 +01:00
parent fac28bac1a
commit 3b900bdcd2

View file

@ -1195,7 +1195,7 @@ UserSettingsPage::updateSecretStatus()
QString ok = "QLabel { color : #00cc66; }"; QString ok = "QLabel { color : #00cc66; }";
QString notSoOk = "QLabel { color : #ff9933; }"; QString notSoOk = "QLabel { color : #ff9933; }";
auto updateLabel = [&, this](QLabel *label, const std::string &secretName) { auto updateLabel = [&ok, &notSoOk](QLabel *label, const std::string &secretName) {
if (cache::secret(secretName)) { if (cache::secret(secretName)) {
label->setStyleSheet(ok); label->setStyleSheet(ok);
label->setText(tr("CACHED")); label->setText(tr("CACHED"));