Skip to content

Commit

Permalink
Fix: Fixed issue where the "loading more" sub menu wouldn't always hi…
Browse files Browse the repository at this point in the history
…de (#13336)
  • Loading branch information
hishitetsu authored Sep 6, 2023
1 parent 92d2b93 commit ee85cfb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Files.App/Views/LayoutModes/BaseLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,14 @@ private async Task AddShellMenuItemsAsync(List<ContextMenuFlyoutItemViewModel> 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
Expand Down

0 comments on commit ee85cfb

Please sign in to comment.