mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 23:24:08 +08:00
[Win11]Also show old context menus (#19249)
This commit is contained in:
parent
db06840338
commit
ad28c41c46
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "ContextMenuHandler.h"
|
#include "ContextMenuHandler.h"
|
||||||
#include <ImageResizerConstants.h>
|
|
||||||
|
|
||||||
#include <Settings.h>
|
#include <Settings.h>
|
||||||
#include <trace.h>
|
#include <trace.h>
|
||||||
@ -70,9 +69,6 @@ HRESULT CContextMenuHandler::QueryContextMenu(_In_ HMENU hmenu, UINT indexMenu,
|
|||||||
if (!CSettingsInstance().GetEnabled())
|
if (!CSettingsInstance().GetEnabled())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (package::IsWin11OrGreater() && package::IsPackageRegistered(ImageResizerConstants::ModulePackageDisplayName))
|
|
||||||
return E_FAIL;
|
|
||||||
|
|
||||||
// NB: We just check the first item. We could iterate through more if the first one doesn't meet the criteria
|
// NB: We just check the first item. We could iterate through more if the first one doesn't meet the criteria
|
||||||
HDropIterator i(m_pdtobj);
|
HDropIterator i(m_pdtobj);
|
||||||
i.First();
|
i.First();
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "PowerRenameExt.h"
|
#include "PowerRenameExt.h"
|
||||||
#include "PowerRenameConstants.h"
|
|
||||||
#include <trace.h>
|
#include <trace.h>
|
||||||
#include <Helpers.h>
|
#include <Helpers.h>
|
||||||
#include <common/themes/icon_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))
|
if (!DataObjectContainsRenamableItem(m_spdo))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (package::IsWin11OrGreater() && package::IsPackageRegistered(PowerRenameConstants::ModulePackageDisplayName))
|
|
||||||
return E_FAIL;
|
|
||||||
|
|
||||||
// Check if we should only be on the extended context menu
|
// Check if we should only be on the extended context menu
|
||||||
if (CSettingsInstance().GetExtendedContextMenuOnly() && (!(uFlags & CMF_EXTENDEDVERBS)))
|
if (CSettingsInstance().GetExtendedContextMenuOnly() && (!(uFlags & CMF_EXTENDEDVERBS)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
Loading…
Reference in New Issue
Block a user