Showing the changes to interface/src/scripting/WalletScriptingInterface.cpp (1 of 12 files). Show all
Unified · Split
| @@ -18,6 +18,11 @@ CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(q · 17 unmodified lines | |||
| 18 | WalletScriptingInterface::WalletScriptingInterface() { | 18 | WalletScriptingInterface::WalletScriptingInterface() { |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | void WalletScriptingInterface::refreshWalletStatus() { | ||
| 22 | auto wallet = DependencyManager::get<Wallet>(); | ||
| 23 | wallet->getWalletStatus(); | ||
| 24 | } | ||
| 25 | |||
| 21 | static const QString CHECKOUT_QML_PATH = qApp->applicationDirPath() + "../../../qml/hifi/commerce/checkout/Checkout.qml"; | 26 | static const QString CHECKOUT_QML_PATH = qApp->applicationDirPath() + "../../../qml/hifi/commerce/checkout/Checkout.qml"; |
| 22 | void WalletScriptingInterface::buy(const QString& name, const QString& id, const int& price, const QString& href) { | 27 | void WalletScriptingInterface::buy(const QString& name, const QString& id, const int& price, const QString& href) { |
| 23 | if (QThread::currentThread() != thread()) { | 28 | if (QThread::currentThread() != thread()) { |