MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / GetUseIconForSubmenu

Method GetUseIconForSubmenu

PathCopyCopy/src/PathCopyCopySettings.cpp:416–428  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers 1

QueryContextMenuMethod · 0.80

Calls 1

QueryDWORDValueMethod · 0.45

Tested by

no test coverage detected