diff options
| author | 2019-01-17 11:39:46 -0500 | |
|---|---|---|
| committer | 2019-01-17 11:39:49 -0500 | |
| commit | 549164d425e42ebbf7ba9c79cb533dd6fc215f8a (patch) | |
| tree | 54273f42ee6c8fc2fc2ac883b9936643b7839c34 | |
| parent | yuzu/configuration/configure_web: Use an ellipsis with 'Verifying' text (diff) | |
| download | yuzu-549164d425e42ebbf7ba9c79cb533dd6fc215f8a.tar.gz yuzu-549164d425e42ebbf7ba9c79cb533dd6fc215f8a.tar.xz yuzu-549164d425e42ebbf7ba9c79cb533dd6fc215f8a.zip | |
yuzu/configuration/configure_web: Remove an unused lambda capture
'this' isn't actually used within the lambda, since what we need
from the class is already assigned within the capture section of
the lambda.
| -rw-r--r-- | src/yuzu/configuration/configure_web.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/yuzu/configuration/configure_web.cpp b/src/yuzu/configuration/configure_web.cpp index 7841413ee..18566d028 100644 --- a/src/yuzu/configuration/configure_web.cpp +++ b/src/yuzu/configuration/configure_web.cpp | |||
| @@ -90,11 +90,10 @@ void ConfigureWeb::OnLoginChanged() { | |||
| 90 | void ConfigureWeb::VerifyLogin() { | 90 | void ConfigureWeb::VerifyLogin() { |
| 91 | ui->button_verify_login->setDisabled(true); | 91 | ui->button_verify_login->setDisabled(true); |
| 92 | ui->button_verify_login->setText(tr("Verifying...")); | 92 | ui->button_verify_login->setText(tr("Verifying...")); |
| 93 | verify_watcher.setFuture( | 93 | verify_watcher.setFuture(QtConcurrent::run([username = ui->edit_username->text().toStdString(), |
| 94 | QtConcurrent::run([this, username = ui->edit_username->text().toStdString(), | 94 | token = ui->edit_token->text().toStdString()] { |
| 95 | token = ui->edit_token->text().toStdString()]() { | 95 | return Core::VerifyLogin(username, token); |
| 96 | return Core::VerifyLogin(username, token); | 96 | })); |
| 97 | })); | ||
| 98 | } | 97 | } |
| 99 | 98 | ||
| 100 | void ConfigureWeb::OnLoginVerified() { | 99 | void ConfigureWeb::OnLoginVerified() { |