Skip to content

Commit bdad62d

Browse files
authored
Feature: Added Description property to IAction (#11815)
1 parent 4588a43 commit bdad62d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+169
-0
lines changed

src/Files.App/Actions/Content/Archives/CompressIntoArchiveAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ internal class CompressIntoArchiveAction : ObservableObject, IAction
1616

1717
public string Label => "CreateArchive".GetLocalizedResource();
1818

19+
public string Description => "TODO: Need to be described.";
20+
1921
public bool IsExecutable => IsContextPageTypeAdaptedToCommand()
2022
&& ArchiveHelpers.CanCompress(context.SelectedItems);
2123

src/Files.App/Actions/Content/Archives/CompressIntoSevenZipAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ internal class CompressIntoSevenZipAction : ObservableObject, IAction
1515

1616
public string Label => string.Format("CreateNamedArchive".GetLocalizedResource(), $"{ArchiveHelpers.DetermineArchiveNameFromSelection(context.SelectedItems)}.7z");
1717

18+
public string Description => "TODO: Need to be described.";
19+
1820
public bool IsExecutable => IsContextPageTypeAdaptedToCommand()
1921
&& ArchiveHelpers.CanCompress(context.SelectedItems);
2022

src/Files.App/Actions/Content/Archives/CompressIntoZipAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ internal class CompressIntoZipAction : ObservableObject, IAction
1515

1616
public string Label => string.Format("CreateNamedArchive".GetLocalizedResource(), $"{ArchiveHelpers.DetermineArchiveNameFromSelection(context.SelectedItems)}.zip");
1717

18+
public string Description => "TODO: Need to be described.";
19+
1820
public bool IsExecutable => IsContextPageTypeAdaptedToCommand()
1921
&& ArchiveHelpers.CanCompress(context.SelectedItems);
2022

src/Files.App/Actions/Content/Archives/DecompressArchive.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ internal class DecompressArchive : ObservableObject, IAction
1616

1717
public string Label => "ExtractFiles".GetLocalizedResource();
1818

19+
public string Description => "TODO: Need to be described.";
20+
1921
public HotKey HotKey { get; } = new(VirtualKey.E, VirtualKeyModifiers.Control);
2022

2123
public bool IsExecutable => IsContextPageTypeAdaptedToCommand()

src/Files.App/Actions/Content/Archives/DecompressArchiveHere.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ internal class DecompressArchiveHere : ObservableObject, IAction
1414

1515
public string Label => "ExtractHere".GetLocalizedResource();
1616

17+
public string Description => "TODO: Need to be described.";
18+
1719
public bool IsExecutable => IsContextPageTypeAdaptedToCommand()
1820
&& ArchiveHelpers.CanDecompress(context.SelectedItems);
1921

src/Files.App/Actions/Content/Archives/DecompressArchiveToChildFolderAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ internal class DecompressArchiveToChildFolderAction : ObservableObject, IAction
1616

1717
public string Label => ComputeLabel();
1818

19+
public string Description => "TODO: Need to be described.";
20+
1921
public bool IsExecutable => IsContextPageTypeAdaptedToCommand()
2022
&& ArchiveHelpers.CanDecompress(context.SelectedItems);
2123

src/Files.App/Actions/Content/Background/SetAsLockscreenBackgroundAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ internal class SetAsLockscreenBackgroundAction : ObservableObject, IAction
1616

1717
public string Label { get; } = "SetAsLockscreen".GetLocalizedResource();
1818

19+
public string Description => "TODO: Need to be described.";
20+
1921
public RichGlyph Glyph { get; } = new("\uEE3F");
2022

2123
private bool isExecutable;

src/Files.App/Actions/Content/Background/SetAsSlideshowBackgroundAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ internal class SetAsSlideshowBackgroundAction : ObservableObject, IAction
1616

1717
public string Label { get; } = "SetAsSlideshow".GetLocalizedResource();
1818

19+
public string Description => "TODO: Need to be described.";
20+
1921
public RichGlyph Glyph { get; } = new("\uE91B");
2022

2123
private bool isExecutable;

src/Files.App/Actions/Content/Background/SetAsWallpaperBackgroundAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ internal class SetAsWallpaperBackgroundAction : ObservableObject, IAction
1616

1717
public string Label { get; } = "SetAsBackground".GetLocalizedResource();
1818

19+
public string Description => "TODO: Need to be described.";
20+
1921
public RichGlyph Glyph { get; } = new("\uE91B");
2022

2123
private bool isExecutable;

src/Files.App/Actions/Content/ImageEdition/RotateLeftAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ internal class RotateLeftAction : ObservableObject, IAction
1717

1818
public string Label { get; } = "RotateLeft".GetLocalizedResource();
1919

20+
public string Description => "TODO: Need to be described.";
21+
2022
public RichGlyph Glyph { get; } = new RichGlyph(opacityStyle: "ColorIconRotateLeft");
2123

2224
public bool IsExecutable => IsContextPageTypeAdaptedToCommand()

0 commit comments

Comments
 (0)