Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all
Unified · Split
| @@ -270,10 +270,14 @@ Menu::Menu() { · 269 unmodified lines | |||
| 270 | // Settings > Audio... | 270 | // Settings > Audio... |
| 271 | action = addActionToQMenuAndActionHash(settingsMenu, "Audio..."); | 271 | action = addActionToQMenuAndActionHash(settingsMenu, "Audio..."); |
| 272 | connect(action, &QAction::triggered, [] { | 272 | connect(action, &QAction::triggered, [] { |
| 273 | static const QUrl widgetUrl("hifi/dialogs/Audio.qml"); | ||
| 274 | static const QUrl tabletUrl("hifi/audio/Audio.qml"); | 273 | static const QUrl tabletUrl("hifi/audio/Audio.qml"); |
| 275 | static const QString name("AudioDialog"); | 274 | auto tablet = DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system"); |
| 276 | qApp->showDialog(widgetUrl, tabletUrl, name); | 275 | auto hmd = DependencyManager::get<HMDScriptingInterface>(); |
| 276 | tablet->pushOntoStack(tabletUrl); | ||
| 277 | |||
| 278 | if (!hmd->getShouldShowTablet()) { | ||
| 279 | hmd->toggleShouldShowTablet(); | ||
| 280 | } | ||
| 277 | }); | 281 | }); |
| 278 | 282 | ||
| 279 | // Settings > Graphics... | 283 | // Settings > Graphics... |