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
15 15
16AccountScriptingInterface* AccountScriptingInterface::getInstance() {16AccountScriptingInterface* AccountScriptingInterface::getInstance() {
17 static AccountScriptingInterface sharedInstance;17 static AccountScriptingInterface sharedInstance;
18 auto accountManager = DependencyManager::get<AccountManager>();
19 QObject::connect(accountManager.data(), &AccountManager::profileChanged,
20 &sharedInstance, &AccountScriptingInterface::usernameChanged);
18 return &sharedInstance;21 return &sharedInstance;
19}22}
20 23