diff --git a/src/Files.App/Views/LayoutModes/BaseLayout.cs b/src/Files.App/Views/LayoutModes/BaseLayout.cs index d1efe01aff79..3b2a2fddb027 100644 --- a/src/Files.App/Views/LayoutModes/BaseLayout.cs +++ b/src/Files.App/Views/LayoutModes/BaseLayout.cs @@ -840,8 +840,14 @@ private async Task AddShellMenuItemsAsync(List s overflowItem.Label = "ShowMoreOptions".GetLocalizedResource(); overflowItem.IsEnabled = true; } - else if (!UserSettingsService.GeneralSettingsService.MoveShellExtensionsToSubMenu) + else + { overflowItem.Visibility = Visibility.Collapsed; + + // Hide separators at the end of the menu + while (contextMenuFlyout.SecondaryCommands.LastOrDefault(x => x is UIElement element && element.Visibility is Visibility.Visible) is AppBarSeparator separator) + separator.Visibility = Visibility.Collapsed; + } } } else