Skip to content

Commit 37fc0b9

Browse files
committed
Code Quality: Update toolbar contexts for archives
1 parent c03a7c9 commit 37fc0b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Files.App/Data/Items/ToolbarItemDescriptor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ public ToolbarItemSettingsEntry ToSettingsEntry() => IsGroup
169169

170170
private static string GetToolbarSectionId(IRichCommand cmd) => cmd.Code switch
171171
{
172-
CommandCodes.DecompressArchiveToChildFolder => ArchiveFilesContextId,
172+
CommandCodes.DecompressArchive
173+
or CommandCodes.DecompressArchiveHere
174+
or CommandCodes.DecompressArchiveHereSmart
175+
or CommandCodes.DecompressArchiveToChildFolder => ArchiveFilesContextId,
173176
CommandCodes.RunWithPowershell => PowerShellFilesContextId,
174177
CommandCodes.EditInNotepad => BatchFilesContextId,
175178
CommandCodes.SetAsWallpaperBackground or CommandCodes.SetAsLockscreenBackground or CommandCodes.SetAsAppBackground

0 commit comments

Comments
 (0)