mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Fix for visual glitch (#4537)
This commit is contained in:
parent
99eb9429fd
commit
014c26be25
@ -69,7 +69,16 @@ namespace Wox.ViewModel
|
||||
LoadContextMenu();
|
||||
}
|
||||
|
||||
AreContextButtonsActive = true;
|
||||
// Result does not contain any context menu items - we don't need to show the context menu ListView at all.
|
||||
if (ContextMenuItems.Count > 0)
|
||||
{
|
||||
AreContextButtonsActive = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
AreContextButtonsActive = false;
|
||||
}
|
||||
|
||||
|
||||
if (activationType == ActivationType.Selection)
|
||||
{
|
||||
@ -105,7 +114,15 @@ namespace Wox.ViewModel
|
||||
IsHovered = false;
|
||||
}
|
||||
|
||||
AreContextButtonsActive = IsSelected || IsHovered;
|
||||
// Result does not contain any context menu items - we don't need to show the context menu ListView at all.
|
||||
if (ContextMenuItems.Count > 0)
|
||||
{
|
||||
AreContextButtonsActive = IsSelected || IsHovered;
|
||||
}
|
||||
else
|
||||
{
|
||||
AreContextButtonsActive = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user