Checks whether we want to show an icon next to the submenu in the contextual menu. @return true if we should show an icon next to submenu.
| 414 | // @return true if we should show an icon next to submenu. |
| 415 | // |
| 416 | bool Settings::GetUseIconForSubmenu() const |
| 417 | { |
| 418 | // Perform late-revising. |
| 419 | Revise(); |
| 420 | |
| 421 | // Check if value exists. If so, read it, otherwise use default value. |
| 422 | bool useIcon = SETTING_USE_ICON_FOR_SUBMENU_DEFAULT; |
| 423 | DWORD regUseIcon = 0; |
| 424 | if (m_UserKey.QueryDWORDValue(SETTING_USE_ICON_FOR_SUBMENU, regUseIcon) == ERROR_SUCCESS) { |
| 425 | useIcon = regUseIcon != 0; |
| 426 | } |
| 427 | return useIcon; |
| 428 | } |
| 429 | |
| 430 | // |
| 431 | // Checks whether we want to show a preview of plugin results |
no test coverage detected