History

Allow javascript to safely open the correct login window (or answer that it is unneded).

howard-stearns committed 10 years ago

Commit 4492c4e1 parent 5e8722c2 files · +6 −0Browse files

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

Unified · Split

interface/src/scripting/AccountScriptingInterface.cpp+5−0
@@ -26,6 +26,11 @@ bool AccountScriptingInterface::isLoggedIn() { · 25 unmodified lines
2626 return accountManager->isLoggedIn();
2727 }
2828
29+bool AccountScriptingInterface::checkAndSignalForAccessToken() {
30+ auto accountManager = DependencyManager::get<AccountManager>();
31+ return accountManager->checkAndSignalForAccessToken();
32+}
33+
2934 QString AccountScriptingInterface::getUsername() {
3035 auto accountManager = DependencyManager::get<AccountManager>();
3136 if (accountManager->isLoggedIn()) {