mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 15:38:00 +02:00
remove unused parameter in AccountScriptingInterface::updateBalance
This commit is contained in:
parent
8b5e3486a3
commit
9824072300
2 changed files with 4 additions and 3 deletions
|
@ -15,8 +15,9 @@
|
||||||
|
|
||||||
AccountScriptingInterface::AccountScriptingInterface() {
|
AccountScriptingInterface::AccountScriptingInterface() {
|
||||||
AccountManager& accountManager = AccountManager::getInstance();
|
AccountManager& accountManager = AccountManager::getInstance();
|
||||||
connect(&accountManager, &AccountManager::balanceChanged, this,
|
bool succ = connect(&accountManager, &AccountManager::balanceChanged, this,
|
||||||
&AccountScriptingInterface::updateBalance);
|
&AccountScriptingInterface::updateBalance);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountScriptingInterface* AccountScriptingInterface::getInstance() {
|
AccountScriptingInterface* AccountScriptingInterface::getInstance() {
|
||||||
|
@ -34,7 +35,7 @@ bool AccountScriptingInterface::isLoggedIn() {
|
||||||
return accountManager.isLoggedIn();
|
return accountManager.isLoggedIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccountScriptingInterface::updateBalance(qint64 newBalance) {
|
void AccountScriptingInterface::updateBalance() {
|
||||||
AccountManager& accountManager = AccountManager::getInstance();
|
AccountManager& accountManager = AccountManager::getInstance();
|
||||||
emit balanceChanged(accountManager.getAccountInfo().getBalanceInSatoshis());
|
emit balanceChanged(accountManager.getAccountInfo().getBalanceInSatoshis());
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ public slots:
|
||||||
static AccountScriptingInterface* getInstance();
|
static AccountScriptingInterface* getInstance();
|
||||||
float getBalance();
|
float getBalance();
|
||||||
bool isLoggedIn();
|
bool isLoggedIn();
|
||||||
void updateBalance(qint64 newBalance);
|
void updateBalance();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // hifi_AccountScriptingInterface_h
|
#endif // hifi_AccountScriptingInterface_h
|
||||||
|
|
Loading…
Reference in a new issue