mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Closes #40781 Filters out TopLevelCommands whose Id matches an app coming from the `AllAppsCommandProvider.Page.GetItems()`. Hate adding processing there, but without adding some type of `bool HideMeOnSearch` to something low enough (like ICommandItem), I don't see another way to distinguish these.
36 lines
926 B
C#
36 lines
926 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Collections.Generic;
|
|
using Microsoft.CommandPalette.Extensions;
|
|
|
|
namespace Microsoft.CmdPal.Ext.Apps;
|
|
|
|
public sealed class AppItem
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public string Subtitle { get; set; } = string.Empty;
|
|
|
|
public string Type { get; set; } = string.Empty;
|
|
|
|
public string IcoPath { get; set; } = string.Empty;
|
|
|
|
public string ExePath { get; set; } = string.Empty;
|
|
|
|
public string DirPath { get; set; } = string.Empty;
|
|
|
|
public string UserModelId { get; set; } = string.Empty;
|
|
|
|
public bool IsPackaged { get; set; }
|
|
|
|
public List<IContextItem>? Commands { get; set; }
|
|
|
|
public string AppIdentifier { get; set; } = string.Empty;
|
|
|
|
public AppItem()
|
|
{
|
|
}
|
|
}
|