Showing the changes to interface/src/scripting/WalletScriptingInterface.cpp (1 of 11 files). Show all
Unified · Split
| @@ -10,6 +10,7 @@ · 9 unmodified lines | |||
| 10 | // | 10 | // |
| 11 | 11 | ||
| 12 | #include "WalletScriptingInterface.h" | 12 | #include "WalletScriptingInterface.h" |
| 13 | #include <SettingHandle.h> | ||
| 13 | 14 | ||
| 14 | CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(qmlObject, parent) { | 15 | CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(qmlObject, parent) { |
| 15 | Q_ASSERT(QThread::currentThread() == qApp->thread()); | 16 | Q_ASSERT(QThread::currentThread() == qApp->thread()); |
| @@ -38,4 +39,10 @@ void WalletScriptingInterface::proveAvatarEntityOwnershipVerification(const QUui · 22 unmodified lines | |||
| 38 | } else { | 39 | } else { |
| 39 | qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is not an avatar entity"; | 40 | qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is not an avatar entity"; |
| 40 | } | 41 | } |
| 41 | } | 42 | } |
| 43 | |||
| 44 | void WalletScriptingInterface::setLimitedCommerce(bool isLimited) { | ||
| 45 | _limitedCommerce = isLimited; | ||
| 46 | Setting::Handle<bool> limitedCommerceSetting{ "limitedCommerce", false }; | ||
| 47 | limitedCommerceSetting.set(_limitedCommerce); | ||
| 48 | } | ||