mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[CmdPal] Hide commands that shouldn't be visible (#39011)
hide commands from more commands
This commit is contained in:
committed by
GitHub
parent
4be6129835
commit
252cf2670f
@@ -109,7 +109,7 @@ public partial class CommandBarViewModel : ObservableObject,
|
|||||||
if (SelectedItem.MoreCommands.Count() > 1)
|
if (SelectedItem.MoreCommands.Count() > 1)
|
||||||
{
|
{
|
||||||
ShouldShowContextMenu = true;
|
ShouldShowContextMenu = true;
|
||||||
ContextCommands = [.. SelectedItem.AllCommands];
|
ContextCommands = [.. SelectedItem.AllCommands.Where(c => c.ShouldBeVisible)];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user