From e9ca36f1db0c120e7cd9fa88a13e6fc1a92aad96 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 20 Nov 2025 13:18:03 +0100 Subject: [PATCH] Fix Trending menu command to hide instead of disable Change the Trending menu command to be completely hidden when the feature flag is disabled, rather than just being disabled and still visible in the UI. --- Shared/MenuCommands.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Shared/MenuCommands.swift b/Shared/MenuCommands.swift index 73285416..447f8836 100644 --- a/Shared/MenuCommands.swift +++ b/Shared/MenuCommands.swift @@ -36,11 +36,12 @@ struct MenuCommands: Commands { .disabled(!AccountsModel.shared.app.supportsPopular) .keyboardShortcut("3") - Button("Trending") { - setTabSelection(.trending) + if FeatureFlags.trendingEnabled { + Button("Trending") { + setTabSelection(.trending) + } + .keyboardShortcut("4") } - .disabled(!FeatureFlags.trendingEnabled) - .keyboardShortcut("4") Button("Search") { setTabSelection(.search)