History

Add option to disable triggering an away state when interface focus is lost.

Saracen committed 7 years ago

Commit 90e979b1 parent 6ccf16d6 files · +53 −2Browse files

Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 6 files). Show all

Unified · Split

interface/src/ui/PreferencesDialog.cpp+6−0
@@ -89,6 +89,12 @@ void setupPreferences() { · 88 unmodified lines
8989 auto setter = [](bool value) { qApp->setSettingConstrainToolbarPosition(value); };
9090 preferences->addPreference(new CheckPreference(UI_CATEGORY, "Constrain Toolbar Position to Horizontal Center", getter, setter));
9191 }
92+
93+ {
94+ auto getter = []()->bool { return qApp->getAwayStateWhenFocusLostInVREnabled(); };
95+ auto setter = [](bool value) { qApp->setAwayStateWhenFocusLostInVREnabled(value); };
96+ preferences->addPreference(new CheckPreference(UI_CATEGORY, "Go into away state when interface window loses focus in VR", getter, setter));
97+ }
9298
9399 {
94100 auto getter = []()->float { return qApp->getDesktopTabletScale(); };

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