mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
28 lines
933 B
C#
28 lines
933 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.Toolkit;
|
||
|
|
using PowerToysExtension.Commands;
|
||
|
|
using PowerToysExtension.Helpers;
|
||
|
|
using static Common.UI.SettingsDeepLink;
|
||
|
|
|
||
|
|
namespace PowerToysExtension.Modules;
|
||
|
|
|
||
|
|
internal sealed class FileLocksmithModuleCommandProvider : ModuleCommandProvider
|
||
|
|
{
|
||
|
|
public override IEnumerable<ListItem> BuildCommands()
|
||
|
|
{
|
||
|
|
var title = SettingsWindow.FileLocksmith.ModuleDisplayName();
|
||
|
|
var icon = SettingsWindow.FileLocksmith.ModuleIcon();
|
||
|
|
|
||
|
|
yield return new ListItem(new OpenInSettingsCommand(SettingsWindow.FileLocksmith, title))
|
||
|
|
{
|
||
|
|
Title = title,
|
||
|
|
Subtitle = "Open File Locksmith settings",
|
||
|
|
Icon = icon,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|