mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
26 lines
795 B
C#
26 lines
795 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 CommunityToolkit.Mvvm.Messaging;
|
|
using Microsoft.CmdPal.UI.Messages;
|
|
using Microsoft.CommandPalette.Extensions;
|
|
using Microsoft.CommandPalette.Extensions.Toolkit;
|
|
|
|
namespace Microsoft.CmdPal.UI.ViewModels.BuiltinCommands;
|
|
|
|
public partial class OpenSettingsCommand : InvokableCommand
|
|
{
|
|
public OpenSettingsCommand()
|
|
{
|
|
Name = Properties.Resources.builtin_open_settings_name;
|
|
Icon = new IconInfo("\uE713");
|
|
}
|
|
|
|
public override ICommandResult Invoke()
|
|
{
|
|
WeakReferenceMessenger.Default.Send(new OpenSettingsMessage());
|
|
return CommandResult.KeepOpen();
|
|
}
|
|
}
|