Showing the changes to interface/src/Menu.cpp (1 of 501 files). Show all
Unified · Split
| @@ -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... |