History

show up audio screen using Settings > Audio

Wayne Chen committed 7 years ago

Commit db22fa91 parent 840f3a32 files · +7 −30Browse files

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

Unified · Split

interface/src/Menu.cpp+7−3
@@ -270,10 +270,14 @@ Menu::Menu() { · 269 unmodified lines
270270 // Settings > Audio...
271271 action = addActionToQMenuAndActionHash(settingsMenu, "Audio...");
272272 connect(action, &QAction::triggered, [] {
273− static const QUrl widgetUrl("hifi/dialogs/Audio.qml");
274273 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+ }
277281 });
278282
279283 // Settings > Graphics...

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t