mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:16:58 +02:00
Avoid unexpected changes
This commit is contained in:
parent
5629cf425e
commit
1a9005ed8b
1 changed files with 1 additions and 13 deletions
|
@ -5786,22 +5786,10 @@ void Application::toggleRunningScriptsWidget() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::showScriptLogs() {
|
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>();
|
auto scriptEngines = DependencyManager::get<ScriptEngines>();
|
||||||
QUrl defaultScriptsLoc = defaultScriptsLocation();
|
QUrl defaultScriptsLoc = defaultScriptsLocation();
|
||||||
defaultScriptsLoc.setPath(defaultScriptsLoc.path() + "developer/debugging/debugWindow.js");
|
defaultScriptsLoc.setPath(defaultScriptsLoc.path() + "developer/debugging/debugWindow.js");
|
||||||
|
scriptEngines->loadScript(defaultScriptsLoc.toString());
|
||||||
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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::showAssetServerWidget(QString filePath) {
|
void Application::showAssetServerWidget(QString filePath) {
|
||||||
|
|
Loading…
Reference in a new issue