Returns the plugin to use when user opens the contextual menu while holding down the Ctrl key. @param p_rPluginId Upon return, will contain the ID of the plugin to use. If the method returns false, this is untouched. @return true if we have a Ctrl key plugin and its ID was copied in p_rPluginId.
| 609 | // in p_rPluginId. |
| 610 | // |
| 611 | bool Settings::GetCtrlKeyPlugin(GUID& p_rPluginId) const |
| 612 | { |
| 613 | // Perform late-revising. |
| 614 | Revise(); |
| 615 | |
| 616 | bool hasPluginId = false; |
| 617 | std::wstring pluginAsString; |
| 618 | if (PluginUtils::ReadRegistryStringValue(m_UserKey, SETTING_CTRL_KEY_PLUGIN, pluginAsString) == ERROR_SUCCESS) { |
| 619 | GUIDV vPluginIds = PluginUtils::StringToPluginIds(pluginAsString, PLUGINS_SEPARATOR); |
| 620 | if (vPluginIds.size() == 1) { |
| 621 | p_rPluginId = vPluginIds.front(); |
| 622 | hasPluginId = true; |
| 623 | } |
| 624 | } |
| 625 | return hasPluginId; |
| 626 | } |
| 627 | |
| 628 | // |
| 629 | // Returns the display order of plugins in the main contextual menu. |