History

remove HMD Tools as menu item, automatically hide/show it when display plugin is an hmd

ZappoMan committed 11 years ago

Commit 6a802561 parent ea685f45 files · +10 −18Browse files

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

Unified · Split

interface/src/Application.cpp+5−0
@@ -4680,6 +4680,11 @@ void Application::updateDisplayMode() { · 4679 unmodified lines
46804680 if (oldDisplayPlugin) {
46814681 oldDisplayPlugin->deactivate();
46824682 _offscreenContext->makeCurrent();
4683+
4684+ // if the old plugin was HMD and the new plugin is not HMD, then hide our hmdtools
4685+ if (oldDisplayPlugin->isHmd() && !newDisplayPlugin->isHmd()) {
4686+ DependencyManager::get<DialogsManager>()->hmdTools(false);
4687+ }
46834688 }
46844689 emit activeDisplayPluginChanged();
46854690 resetSensors();

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