mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
28 lines
819 B
C#
28 lines
819 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 Microsoft.CommandPalette.Extensions;
|
|
using Microsoft.CommandPalette.Extensions.Toolkit;
|
|
|
|
namespace PowerToysExtension;
|
|
|
|
public partial class PowerToysExtensionCommandsProvider : CommandProvider
|
|
{
|
|
private readonly ICommandItem[] _commands;
|
|
|
|
public PowerToysExtensionCommandsProvider()
|
|
{
|
|
DisplayName = "PowerToysExtension";
|
|
Icon = IconHelpers.FromRelativePath("Assets\\StoreLogo.png");
|
|
_commands = [
|
|
new CommandItem(new PowerToysExtensionPage()) { Title = DisplayName },
|
|
];
|
|
}
|
|
|
|
public override ICommandItem[] TopLevelCommands()
|
|
{
|
|
return _commands;
|
|
}
|
|
}
|