mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Bug Fixes for PowerRename (#614)
* Bug Fixes Fixes include: * Pass parent HWND to UI so dialog is no longer appearing in top corner all the time * Fix duplicate entries for PowerRename in context menu for shortcuts * Fix crashing bug due to telemetry not getting unregistered on unload * Ensure we show the file extension in the UI even if extensions are hidden in Windows Explorer * Update PowerRenameExt.cpp Fix missed line to set parent HWND
This commit is contained in:
@@ -102,7 +102,7 @@ public:
|
||||
interface __declspec(uuid("E6679DEB-460D-42C1-A7A8-E25897061C99")) IPowerRenameUI : public IUnknown
|
||||
{
|
||||
public:
|
||||
IFACEMETHOD(Show)() = 0;
|
||||
IFACEMETHOD(Show)(_In_opt_ HWND hwndParent) = 0;
|
||||
IFACEMETHOD(Close)() = 0;
|
||||
IFACEMETHOD(Update)() = 0;
|
||||
};
|
||||
|
||||
@@ -203,7 +203,7 @@ HRESULT CPowerRenameItem::_Init(_In_ IShellItem* psi)
|
||||
HRESULT hr = psi->GetDisplayName(SIGDN_FILESYSPATH, &m_path);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
hr = psi->GetDisplayName(SIGDN_NORMALDISPLAY, &m_originalName);
|
||||
hr = SHStrDup(PathFindFileName(m_path), &m_originalName);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
// Check if we are a folder now so we can check this attribute quickly later
|
||||
|
||||
Reference in New Issue
Block a user