diff --git a/src/Files.App/Actions/FileSystem/CreateShortcutFromDialogAction.cs b/src/Files.App/Actions/FileSystem/CreateShortcutFromDialogAction.cs index 6dd870c13005..a634046a3a74 100644 --- a/src/Files.App/Actions/FileSystem/CreateShortcutFromDialogAction.cs +++ b/src/Files.App/Actions/FileSystem/CreateShortcutFromDialogAction.cs @@ -4,7 +4,6 @@ using Files.App.Contexts; using Files.App.Extensions; using Files.App.Helpers; -using System.ComponentModel; using System.Threading.Tasks; namespace Files.App.Actions @@ -17,23 +16,10 @@ internal class CreateShortcutFromDialogAction : ObservableObject, IAction public RichGlyph Glyph { get; } = new RichGlyph(opacityStyle: "ColorIconShortcut"); - public bool IsExecutable => context.HasSelection; - - public CreateShortcutFromDialogAction() - { - context.PropertyChanged += Context_PropertyChanged; - } - public async Task ExecuteAsync() { if (context.ShellPage is not null) await UIFilesystemHelpers.CreateShortcutFromDialogAsync(context.ShellPage); } - - private void Context_PropertyChanged(object? sender, PropertyChangedEventArgs e) - { - if (e.PropertyName is nameof(IContentPageContext.HasSelection)) - OnPropertyChanged(nameof(IsExecutable)); - } } }