Showing the changes to interface/src/scripting/WalletScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -16,6 +16,11 @@ CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(q · 15 unmodified lines | ||
| 16 | 16 | Q_ASSERT(QThread::currentThread() == qApp->thread()); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | +WalletScriptingInterface::WalletScriptingInterface() { | |
| 20 | + connect(DependencyManager::get<AccountManager>().data(), | |
| 21 | + &AccountManager::limitedCommerceChanged, this, &WalletScriptingInterface::limitedCommerceChanged); | |
| 22 | +} | |
| 23 | + | |
| 19 | 24 | void WalletScriptingInterface::refreshWalletStatus() { |
| 20 | 25 | auto wallet = DependencyManager::get<Wallet>(); |
| 21 | 26 | wallet->getWalletStatus(); |
| @@ -40,9 +45,3 @@ void WalletScriptingInterface::proveAvatarEntityOwnershipVerification(const QUui · 18 unmodified lines | ||
| 40 | 45 | qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is not an avatar entity"; |
| 41 | 46 | } |
| 42 | 47 | } |
| 43 | − | |
| 44 | −void WalletScriptingInterface::setLimitedCommerce(bool isLimited) { | |
| 45 | − _limitedCommerce = isLimited; | |
| 46 | − Setting::Handle<bool> limitedCommerceSetting{ "limitedCommerce", false }; | |
| 47 | − limitedCommerceSetting.set(_limitedCommerce); | |
| 48 | −} | |