mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 20:27:45 +00:00
Remove shadowed variable
This commit is contained in:
parent
68d8d9f042
commit
99575d2406
1 changed files with 3 additions and 3 deletions
|
@ -290,11 +290,11 @@ QCoro::Task<bool> SquareEnixLogin::loginOAuth()
|
||||||
|
|
||||||
co_return true;
|
co_return true;
|
||||||
} else {
|
} else {
|
||||||
const QRegularExpression re(QStringLiteral(R"lit(window.external.user\("login=auth,ng,err,(?<launchParams>.*)\);)lit"));
|
const QRegularExpression errorRe(QStringLiteral(R"lit(window.external.user\("login=auth,ng,err,(?<launchParams>.*)\);)lit"));
|
||||||
const QRegularExpressionMatch match = re.match(str);
|
const QRegularExpressionMatch errorMatch = errorRe.match(str);
|
||||||
|
|
||||||
// there's a stray quote at the end of the error string, so let's remove that
|
// there's a stray quote at the end of the error string, so let's remove that
|
||||||
Q_EMIT m_launcher.loginError(match.captured(1).chopped(1));
|
Q_EMIT m_launcher.loginError(errorMatch.captured(1).chopped(1));
|
||||||
|
|
||||||
co_return false;
|
co_return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue