Showing the changes to interface/src/scripting/AccountScriptingInterface.cpp (1 of 15 files). Show all
Unified · Split
| @@ -15,6 +15,9 @@ · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | AccountScriptingInterface* AccountScriptingInterface::getInstance() { |
| 17 | 17 | static AccountScriptingInterface sharedInstance; |
| 18 | + auto accountManager = DependencyManager::get<AccountManager>(); | |
| 19 | + QObject::connect(accountManager.data(), &AccountManager::profileChanged, | |
| 20 | + &sharedInstance, &AccountScriptingInterface::usernameChanged); | |
| 18 | 21 | return &sharedInstance; |
| 19 | 22 | } |
| 20 | 23 | |