History

merge with master

HifiExperiments committed 7 years ago

Commit 97b91792 parents 6060077 1569c40501 files · +21594 −6864Browse files

Showing the changes to interface/src/Menu.cpp (1 of 501 files). Show all

Unified · Split

interface/src/Menu.cpp+7−2
@@ -267,8 +267,13 @@ Menu::Menu() { · 266 unmodified lines
267 // Settings > Graphics...267 // Settings > Graphics...
268 action = addActionToQMenuAndActionHash(settingsMenu, "Graphics...");268 action = addActionToQMenuAndActionHash(settingsMenu, "Graphics...");
269 connect(action, &QAction::triggered, [] {269 connect(action, &QAction::triggered, [] {
270 qApp->showDialog(QString("hifi/dialogs/GraphicsPreferencesDialog.qml"),270 auto tablet = DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system");
271 QString("hifi/tablet/TabletGraphicsPreferences.qml"), "GraphicsPreferencesDialog");271 auto hmd = DependencyManager::get<HMDScriptingInterface>();
272 tablet->pushOntoStack("hifi/dialogs/graphics/GraphicsSettings.qml");
273
274 if (!hmd->getShouldShowTablet()) {
275 hmd->toggleShouldShowTablet();
276 }
272 });277 });
273 278
274 // Settings > Security...279 // Settings > Security...