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

Method GetUsePreviewMode

PathCopyCopy/src/PathCopyCopySettings.cpp:436–448  ·  view source on GitHub ↗

Checks whether we want to show a preview of plugin results instead of plugin names in the submenu. @return true if we should use preview mode in submenu.

Source from the content-addressed store, hash-verified

434 // @return true if we should use preview mode in submenu.
435 //
436 bool Settings::GetUsePreviewMode() const
437 {
438 // Perform late-revising.
439 Revise();
440
441 // Check if value exists. If so, read it, otherwise use default value.
442 bool previewMode = SETTING_USE_PREVIEW_MODE_DEFAULT;
443 DWORD regPreviewMode = 0;
444 if (m_UserKey.QueryDWORDValue(SETTING_USE_PREVIEW_MODE, regPreviewMode) == ERROR_SUCCESS) {
445 previewMode = regPreviewMode != 0;
446 }
447 return previewMode;
448 }
449
450 //
451 // 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