saving work

This commit is contained in:
Dante Ruiz 2017-02-17 18:47:59 +00:00
parent 08ffa18008
commit dedd85d296
2 changed files with 8 additions and 3 deletions

View file

@ -81,6 +81,7 @@ Item {
loader.item.subMenu = option;
}
loader.item.forceActiveFocus();
tabletRoot.findStackableChild();
}
}

View file

@ -5747,9 +5747,13 @@ bool Application::displayAvatarAttachmentConfirmationDialog(const QString& name)
}
void Application::toggleRunningScriptsWidget() const {
static const QUrl url("hifi/dialogs/RunningScripts.qml");
DependencyManager::get<OffscreenUi>()->show(url, "RunningScripts");
static const QUrl url("../../hifi/dialogs/TabletRunningScripts.qml");
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
auto tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
if (tablet) {
tablet->pushOntoStack(url);
}
//DependencyManager::get<OffscreenUi>()->show(url, "RunningScripts");
//if (_runningScriptsWidget->isVisible()) {
// if (_runningScriptsWidget->hasFocus()) {
// _runningScriptsWidget->hide();