fix update

This commit is contained in:
Dante Ruiz 2018-09-14 14:10:36 -07:00
parent 4eb5c9714b
commit ff52639bc3
2 changed files with 19 additions and 3 deletions

View file

@ -41,7 +41,15 @@ Item {
section.saveAll();
}
closeDialog();
if (HMD.active) {
if (gotoPreviousApp) {
tablet.returnToPreviousApp();
} else {
tablet.popFromStack();
}
} else {
closeDialog();
}
}
function restoreAll() {
@ -50,7 +58,15 @@ Item {
section.restoreAll();
}
closeDialog();
if (HMD.active) {
if (gotoPreviousApp) {
tablet.returnToPreviousApp();
} else {
tablet.popFromStack();
}
} else {
closeDialog();
}
}
function closeDialog() {

View file

@ -255,7 +255,7 @@ Menu::Menu() {
connect(action, &QAction::triggered, [] {
auto tablet = DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system");
auto hmd = DependencyManager::get<HMDScriptingInterface>();
tablet->loadQMLOnTop("hifi/tablet/ControllerSettings.qml");
tablet->pushOntoStack("hifi/tablet/ControllerSettings.qml");
if (!hmd->getShouldShowTablet()) {
hmd->toggleShouldShowTablet();