Skip to content

Commit

Permalink
Feature: Removed limit that prevented opening more than ten files at …
Browse files Browse the repository at this point in the history
…the same time (files-community#16139)
  • Loading branch information
yaira2 authored Sep 6, 2024
1 parent c888068 commit 6a335a9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Files.App/Actions/FileSystem/OpenItemAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ public RichGlyph Glyph
public HotKey HotKey
=> new(Keys.Enter);

private const int MaxOpenCount = 10;

public bool IsExecutable =>
context.HasSelection &&
context.SelectedItems.Count <= MaxOpenCount &&
!(context.ShellPage is ColumnShellPage &&
context.SelectedItem?.PrimaryItemAttribute == StorageItemTypes.Folder);

Expand Down

0 comments on commit 6a335a9

Please sign in to comment.