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 | 270 | // Settings > Audio... |
| 271 | 271 | action = addActionToQMenuAndActionHash(settingsMenu, "Audio..."); |
| 272 | 272 | connect(action, &QAction::triggered, [] { |
| 273 | − static const QUrl widgetUrl("hifi/dialogs/Audio.qml"); | |
| 274 | 273 | static const QUrl tabletUrl("hifi/audio/Audio.qml"); |
| 275 | − static const QString name("AudioDialog"); | |
| 276 | − qApp->showDialog(widgetUrl, tabletUrl, name); | |
| 274 | + auto tablet = DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system"); | |
| 275 | + auto hmd = DependencyManager::get<HMDScriptingInterface>(); | |
| 276 | + tablet->pushOntoStack(tabletUrl); | |
| 277 | + | |
| 278 | + if (!hmd->getShouldShowTablet()) { | |
| 279 | + hmd->toggleShouldShowTablet(); | |
| 280 | + } | |
| 277 | 281 | }); |
| 278 | 282 | |
| 279 | 283 | // Settings > Graphics... |