History

UI wiring

Atlante45 committed 10 years ago

Commit f0ff9751 parent 205df0c15 files · +382 −113Browse files

Showing the changes to interface/src/scripting/AccountScriptingInterface.cpp (1 of 15 files). Show all

Unified · Split

interface/src/scripting/AccountScriptingInterface.cpp+3−0
@@ -15,6 +15,9 @@ · 14 unmodified lines
1515
1616 AccountScriptingInterface* AccountScriptingInterface::getInstance() {
1717 static AccountScriptingInterface sharedInstance;
18+ auto accountManager = DependencyManager::get<AccountManager>();
19+ QObject::connect(accountManager.data(), &AccountManager::profileChanged,
20+ &sharedInstance, &AccountScriptingInterface::usernameChanged);
1821 return &sharedInstance;
1922 }
2023