mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Merge pull request #10083 from vladest/tablet-ui-scriptslog-back
Script log now back to HUD
This commit is contained in:
commit
9cd2717163
1 changed files with 1 additions and 13 deletions
|
@ -5781,22 +5781,10 @@ void Application::toggleRunningScriptsWidget() const {
|
|||
}
|
||||
|
||||
void Application::showScriptLogs() {
|
||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||
auto tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
||||
auto scriptEngines = DependencyManager::get<ScriptEngines>();
|
||||
QUrl defaultScriptsLoc = defaultScriptsLocation();
|
||||
defaultScriptsLoc.setPath(defaultScriptsLoc.path() + "developer/debugging/debugWindow.js");
|
||||
|
||||
if (tablet->getToolbarMode()) {
|
||||
scriptEngines->loadScript(defaultScriptsLoc.toString());
|
||||
} else {
|
||||
QQuickItem* tabletRoot = tablet->getTabletRoot();
|
||||
if (!tabletRoot && !isHMDMode()) {
|
||||
scriptEngines->loadScript(defaultScriptsLoc.toString());
|
||||
} else {
|
||||
tablet->pushOntoStack("../../hifi/dialogs/TabletDebugWindow.qml");
|
||||
}
|
||||
}
|
||||
scriptEngines->loadScript(defaultScriptsLoc.toString());
|
||||
}
|
||||
|
||||
void Application::showAssetServerWidget(QString filePath) {
|
||||
|
|
Loading…
Reference in a new issue