[Win11]Also show old context menus (#19249)

This commit is contained in:
Jaime Bernardo
2022-07-11 16:40:34 +01:00
committed by GitHub
parent db06840338
commit ad28c41c46
2 changed files with 0 additions and 8 deletions

View File

@@ -1,6 +1,5 @@
#include "pch.h"
#include "PowerRenameExt.h"
#include "PowerRenameConstants.h"
#include <trace.h>
#include <Helpers.h>
#include <common/themes/icon_helpers.h>
@@ -69,9 +68,6 @@ HRESULT CPowerRenameMenu::QueryContextMenu(HMENU hMenu, UINT index, UINT uIDFirs
if (!DataObjectContainsRenamableItem(m_spdo))
return E_FAIL;
if (package::IsWin11OrGreater() && package::IsPackageRegistered(PowerRenameConstants::ModulePackageDisplayName))
return E_FAIL;
// Check if we should only be on the extended context menu
if (CSettingsInstance().GetExtendedContextMenuOnly() && (!(uFlags & CMF_EXTENDEDVERBS)))
return E_FAIL;