mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:09:52 +02:00
Fix commerce setting handle
This commit is contained in:
parent
8d74487393
commit
b5dc6b791b
3 changed files with 3 additions and 4 deletions
|
@ -201,7 +201,8 @@ bool ContextOverlayInterface::destroyContextOverlay(const EntityItemID& entityIt
|
||||||
void ContextOverlayInterface::contextOverlays_mousePressOnOverlay(const OverlayID& overlayID, const PointerEvent& event) {
|
void ContextOverlayInterface::contextOverlays_mousePressOnOverlay(const OverlayID& overlayID, const PointerEvent& event) {
|
||||||
if (overlayID == _contextOverlayID && event.getButton() == PointerEvent::PrimaryButton) {
|
if (overlayID == _contextOverlayID && event.getButton() == PointerEvent::PrimaryButton) {
|
||||||
qCDebug(context_overlay) << "Clicked Context Overlay. Entity ID:" << _currentEntityWithContextOverlay << "Overlay ID:" << overlayID;
|
qCDebug(context_overlay) << "Clicked Context Overlay. Entity ID:" << _currentEntityWithContextOverlay << "Overlay ID:" << overlayID;
|
||||||
if (_commerceSettingSwitch.get()) {
|
Setting::Handle<bool> _settingSwitch{ "commerce", false };
|
||||||
|
if (_settingSwitch.get()) {
|
||||||
openInspectionCertificate();
|
openInspectionCertificate();
|
||||||
} else {
|
} else {
|
||||||
openMarketplace();
|
openMarketplace();
|
||||||
|
|
|
@ -79,8 +79,6 @@ private:
|
||||||
|
|
||||||
bool _isInMarketplaceInspectionMode { false };
|
bool _isInMarketplaceInspectionMode { false };
|
||||||
|
|
||||||
Setting::Handle<bool> _commerceSettingSwitch{ "commerce", false };
|
|
||||||
|
|
||||||
void openInspectionCertificate();
|
void openInspectionCertificate();
|
||||||
void openMarketplace();
|
void openMarketplace();
|
||||||
void enableEntityHighlight(const EntityItemID& entityItemID);
|
void enableEntityHighlight(const EntityItemID& entityItemID);
|
||||||
|
|
|
@ -61,7 +61,7 @@ void RequestFilters::interceptHFWebEngineRequest(QWebEngineUrlRequestInfo& info)
|
||||||
|
|
||||||
// During the period in which we have HFC commerce in the system, but not applied everywhere:
|
// During the period in which we have HFC commerce in the system, but not applied everywhere:
|
||||||
const QString tokenStringCommerce{ "Chrome/48.0 (HighFidelityInterface WithHFC)" };
|
const QString tokenStringCommerce{ "Chrome/48.0 (HighFidelityInterface WithHFC)" };
|
||||||
static Setting::Handle<bool> _settingSwitch{ "commerce", false };
|
Setting::Handle<bool> _settingSwitch{ "commerce", false };
|
||||||
bool isMoney = _settingSwitch.get();
|
bool isMoney = _settingSwitch.get();
|
||||||
|
|
||||||
const QString tokenString = !isAuthable ? tokenStringMobile : (isMoney ? tokenStringCommerce : tokenStringMetaverse);
|
const QString tokenString = !isAuthable ? tokenStringMobile : (isMoney ? tokenStringCommerce : tokenStringMetaverse);
|
||||||
|
|
Loading…
Reference in a new issue