Checks whether we should always show the submenu with all plugins. If not, we will only show the submenu when the Shift key is pressed. @return true to always show the submenu.
| 493 | // @return true to always show the submenu. |
| 494 | // |
| 495 | bool Settings::GetAlwaysShowSubmenu() const |
| 496 | { |
| 497 | // Perform late-revising. |
| 498 | Revise(); |
| 499 | |
| 500 | // Check if value exists. If so, read it, otherwise use default value. |
| 501 | bool alwaysShowSubmenu = SETTING_ALWAYS_SHOW_SUBMENU_DEFAULT; |
| 502 | DWORD regAlwaysShowSubmenu = 0; |
| 503 | if (m_UserKey.QueryDWORDValue(SETTING_ALWAYS_SHOW_SUBMENU, regAlwaysShowSubmenu) == ERROR_SUCCESS) { |
| 504 | alwaysShowSubmenu = regAlwaysShowSubmenu != 0; |
| 505 | } |
| 506 | return alwaysShowSubmenu; |
| 507 | } |
| 508 | |
| 509 | // |
| 510 | // Checks whether we should always show the Settings entry in the submenu. |
no test coverage detected