Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 99e3a55

Browse files
authoredMay 19, 2025··
Feature: Added support for searching commands on the actions page (#17141)
1 parent 8fffbb4 commit 99e3a55

File tree

12 files changed

+174
-105
lines changed

12 files changed

+174
-105
lines changed
 

‎src/Files.App/Actions/Content/Install/InstallCertificateAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal sealed partial class InstallCertificateAction : ObservableObject, IActi
1010
private readonly IContentPageContext context;
1111

1212
public string Label
13-
=> Strings.Install.GetLocalizedResource();
13+
=> Strings.InstallCertificate.GetLocalizedResource();
1414

1515
public string Description
1616
=> Strings.InstallCertificateDescription.GetLocalizedFormatResource(context.SelectedItems.Count);

‎src/Files.App/Actions/Content/Install/InstallFontAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal sealed partial class InstallFontAction : ObservableObject, IAction
1111
private static readonly StatusCenterViewModel StatusCenterViewModel = Ioc.Default.GetRequiredService<StatusCenterViewModel>();
1212

1313
public string Label
14-
=> Strings.Install.GetLocalizedResource();
14+
=> Strings.InstallFont.GetLocalizedResource();
1515

1616
public string Description
1717
=> Strings.InstallFontDescription.GetLocalizedFormatResource(context.SelectedItems.Count);

‎src/Files.App/Actions/Content/Install/InstallInfDriverAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal sealed partial class InstallInfDriverAction : ObservableObject, IAction
1010
private readonly IContentPageContext context;
1111

1212
public string Label
13-
=> Strings.Install.GetLocalizedResource();
13+
=> Strings.InstallDriver.GetLocalizedResource();
1414

1515
public string Description
1616
=> Strings.InstallInfDriverDescription.GetLocalizedFormatResource(context.SelectedItems.Count);

‎src/Files.App/Actions/FileSystem/CopyItemPathAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal sealed class CopyItemPathAction : IAction
1010
private readonly IContentPageContext context;
1111

1212
public string Label
13-
=> Strings.CopyPath.GetLocalizedResource();
13+
=> Strings.CopyItemPath.GetLocalizedResource();
1414

1515
public string Description
1616
=> Strings.CopyItemPathDescription.GetLocalizedResource();

‎src/Files.App/Actions/FileSystem/PasteItemToSelectionAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal sealed partial class PasteItemToSelectionAction : BaseUIAction, IAction
88
private readonly IContentPageContext context;
99

1010
public string Label
11-
=> Strings.Paste.GetLocalizedResource();
11+
=> Strings.PasteToSelectedFolder.GetLocalizedResource();
1212

1313
public string Description
1414
=> Strings.PasteItemToSelectionDescription.GetLocalizedResource();

‎src/Files.App/Actions/Show/ToggleShowHiddenItemsAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal sealed partial class ToggleShowHiddenItemsAction : ObservableObject, IT
88
private readonly IFoldersSettingsService settings;
99

1010
public string Label
11-
=> Strings.ShowHiddenItems.GetLocalizedResource();
11+
=> Strings.HiddenItems.GetLocalizedResource();
1212

1313
public string Description
1414
=> Strings.ToggleShowHiddenItemsDescription.GetLocalizedResource();

‎src/Files.App/Actions/Show/ToggleToolbarAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public string Label
1111
=> Strings.ToggleToolbar.GetLocalizedResource();
1212

1313
public string Description
14-
=> Strings.ToggleToolbar.GetLocalizedResource();
14+
=> Strings.ToggleToolbarDescription.GetLocalizedResource();
1515

1616
public HotKey HotKey
1717
=> new(Keys.B, KeyModifiers.CtrlShift);

‎src/Files.App/Dialogs/SettingsDialog.xaml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ private void UpdateDialogLayout()
5050
{
5151
ContainerGrid.Height = MainWindow.Instance.Bounds.Height <= 760 ? MainWindow.Instance.Bounds.Height - 70 : 690;
5252
ContainerGrid.Width = MainWindow.Instance.Bounds.Width <= 1100 ? MainWindow.Instance.Bounds.Width : 1100;
53-
MainSettingsNavigationView.PaneDisplayMode = MainWindow.Instance.Bounds.Width < 700 ? NavigationViewPaneDisplayMode.LeftCompact : NavigationViewPaneDisplayMode.Left;
53+
54+
var paneDisplayMode = MainWindow.Instance.Bounds.Width < 700
55+
? NavigationViewPaneDisplayMode.LeftCompact
56+
: NavigationViewPaneDisplayMode.Left;
57+
58+
if (MainSettingsNavigationView.PaneDisplayMode != paneDisplayMode)
59+
MainSettingsNavigationView.PaneDisplayMode = paneDisplayMode;
5460
}
5561

5662
private void MainSettingsNavigationView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)

0 commit comments

Comments
 (0)
Please sign in to comment.