mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[Win11]Also show old context menus (#19249)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user