mirror of
https://github.com/yattee/yattee.git
synced 2025-11-22 06:31:26 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user