History

Round 2

Zach Fox committed 9 years ago

Commit 733df831 parent acdd1e312 files · +93 −44Browse files

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

Unified · Split

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