mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 21:53:12 +02:00
fix getUsername for AccountManager include in implementation
This commit is contained in:
parent
c9982e765e
commit
dde84ac2b8
2 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,10 @@ GlobalServicesScriptingInterface* GlobalServicesScriptingInterface::getInstance(
|
|||
return &sharedInstance;
|
||||
}
|
||||
|
||||
const QString& GlobalServicesScriptingInterface::getUsername() const {
|
||||
return AccountManager::getInstance().getAccountInfo().getUsername();
|
||||
}
|
||||
|
||||
void GlobalServicesScriptingInterface::loggedOut() {
|
||||
emit GlobalServicesScriptingInterface::disconnected(QString("logout"));
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class GlobalServicesScriptingInterface : public QObject {
|
|||
public:
|
||||
static GlobalServicesScriptingInterface* getInstance();
|
||||
|
||||
const QString& getUsername() const { return AccountManager::getInstance().getAccountInfo().getUsername(); }
|
||||
const QString& getUsername() const;
|
||||
|
||||
public slots:
|
||||
DownloadInfoResult getDownloadInfo();
|
||||
|
|
Loading…
Reference in a new issue