mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
fix wording for access token change signal
This commit is contained in:
parent
2496c6252f
commit
d5fc1caaaf
3 changed files with 4 additions and 4 deletions
|
@ -94,7 +94,7 @@ Menu::Menu() :
|
|||
toggleLoginMenuItem();
|
||||
|
||||
// connect to the appropriate slots of the AccountManager so that we can change the Login/Logout menu item
|
||||
connect(&accountManager, &AccountManager::foundOrRequestedAccessToken, this, &Menu::toggleLoginMenuItem);
|
||||
connect(&accountManager, &AccountManager::accessTokenChanged, this, &Menu::toggleLoginMenuItem);
|
||||
connect(&accountManager, &AccountManager::logoutComplete, this, &Menu::toggleLoginMenuItem);
|
||||
|
||||
addDisabledActionAndSeparator(fileMenu, "Scripts");
|
||||
|
|
|
@ -89,7 +89,7 @@ void AccountManager::setAuthURL(const QUrl& authURL) {
|
|||
_accountInfo = settings.value(key).value<DataServerAccountInfo>();
|
||||
qDebug() << "Found a data-server access token for" << qPrintable(keyURL.toString());
|
||||
|
||||
emit foundOrRequestedAccessToken();
|
||||
emit accessTokenChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -275,7 +275,7 @@ void AccountManager::requestFinished() {
|
|||
emit usernameChanged(_accountInfo.getUsername());
|
||||
|
||||
// we have found or requested an access token
|
||||
emit foundOrRequestedAccessToken();
|
||||
emit accessTokenChanged();
|
||||
|
||||
// store this access token into the local settings
|
||||
QSettings localSettings;
|
||||
|
|
|
@ -61,7 +61,7 @@ signals:
|
|||
void authRequired();
|
||||
void authEndpointChanged();
|
||||
void usernameChanged(const QString& username);
|
||||
void foundOrRequestedAccessToken();
|
||||
void accessTokenChanged();
|
||||
void loginComplete(const QUrl& authURL);
|
||||
void logoutComplete();
|
||||
private slots:
|
||||
|
|
Loading…
Reference in a new issue