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.
This commit is contained in:
Arkadiusz Fal
2025-11-20 13:18:03 +01:00
parent 5b607687d9
commit e9ca36f1db

View File

@@ -36,11 +36,12 @@ struct MenuCommands: Commands {
.disabled(!AccountsModel.shared.app.supportsPopular)
.keyboardShortcut("3")
if FeatureFlags.trendingEnabled {
Button("Trending") {
setTabSelection(.trending)
}
.disabled(!FeatureFlags.trendingEnabled)
.keyboardShortcut("4")
}
Button("Search") {
setTabSelection(.search)