fix snapshot settings

This commit is contained in:
Dante Ruiz 2018-09-14 12:59:28 -07:00
parent 4378f5bf1c
commit 4eb5c9714b
2 changed files with 3 additions and 11 deletions

View file

@ -41,11 +41,7 @@ Item {
section.saveAll();
}
if (HMD.active) {
tablet.popFromStack();
} else {
closeDialog();
}
closeDialog();
}
function restoreAll() {
@ -54,11 +50,7 @@ Item {
section.restoreAll();
}
if (HMD.active) {
tablet.popFromStack();
} else {
closeDialog();
}
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->pushOntoStack("hifi/tablet/ControllerSettings.qml");
tablet->loadQMLOnTop("hifi/tablet/ControllerSettings.qml");
if (!hmd->getShouldShowTablet()) {
hmd->toggleShouldShowTablet();