mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Actually fix context menu
This commit is contained in:
parent
871a5ff1ab
commit
03729bf165
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,6 @@ void ContextOverlayInterface::contextOverlays_hoverLeaveEntity(const EntityItemI
|
||||||
}
|
}
|
||||||
|
|
||||||
static const QString MARKETPLACE_BASE_URL = "https://metaverse.highfidelity.com/marketplace/items/";
|
static const QString MARKETPLACE_BASE_URL = "https://metaverse.highfidelity.com/marketplace/items/";
|
||||||
static const QString MARKETPLACES_INJECT_SCRIPT_PATH = PathUtils::resourcesPath() + "../scripts/system/html/js/marketplacesInject.js";
|
|
||||||
|
|
||||||
void ContextOverlayInterface::openMarketplace() {
|
void ContextOverlayInterface::openMarketplace() {
|
||||||
// lets open the tablet and go to the current item in
|
// lets open the tablet and go to the current item in
|
||||||
|
@ -251,6 +250,7 @@ void ContextOverlayInterface::openMarketplace() {
|
||||||
auto tablet = dynamic_cast<TabletProxy*>(_tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
auto tablet = dynamic_cast<TabletProxy*>(_tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
||||||
// construct the url to the marketplace item
|
// construct the url to the marketplace item
|
||||||
QString url = MARKETPLACE_BASE_URL + _entityMarketplaceID;
|
QString url = MARKETPLACE_BASE_URL + _entityMarketplaceID;
|
||||||
|
QString MARKETPLACES_INJECT_SCRIPT_PATH = "file:///" + qApp->applicationDirPath() + "/scripts/system/html/js/marketplacesInject.js";
|
||||||
tablet->gotoWebScreen(url, MARKETPLACES_INJECT_SCRIPT_PATH);
|
tablet->gotoWebScreen(url, MARKETPLACES_INJECT_SCRIPT_PATH);
|
||||||
_hmdScriptingInterface->openTablet();
|
_hmdScriptingInterface->openTablet();
|
||||||
_isInMarketplaceInspectionMode = true;
|
_isInMarketplaceInspectionMode = true;
|
||||||
|
|
Loading…
Reference in a new issue