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

Method GetAlwaysShowSubmenu

PathCopyCopy/src/PathCopyCopySettings.cpp:495–507  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.

Callers 1

QueryContextMenuMethod · 0.80

Calls 1

QueryDWORDValueMethod · 0.45

Tested by

no test coverage detected