mirror of
git://jb55.com/damus
synced 2024-09-30 00:40:45 +00:00
mute: fix bug with duplicate Indefinite items in MuteDurationMenu
The `Indefinite` was added to DamusDuration in "Fixing issue with not being able to change mute duration” so this needs to be removed so that there isn’t a repeative item in the menu. Lighting-Address: fishcharlie@strike.me Signed-off-by: Charlie Fish <contact@charlie.fish> Reviewed-by: William Casarin <jb55@jb55.com> Link: 20240210163650.42884-6-contact@charlie.fish Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
a18f50f250
commit
68a18f5e40
@ -13,11 +13,6 @@ struct MuteDurationMenu<T: View>: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Menu {
|
Menu {
|
||||||
Button {
|
|
||||||
action(nil)
|
|
||||||
} label: {
|
|
||||||
Text("Indefinite", comment: "Mute a given item indefinitly (until user unmutes it). As opposed to muting the item for a given period of time.")
|
|
||||||
}
|
|
||||||
ForEach(DamusDuration.allCases, id: \.self) { duration in
|
ForEach(DamusDuration.allCases, id: \.self) { duration in
|
||||||
Button {
|
Button {
|
||||||
action(duration)
|
action(duration)
|
||||||
|
Loading…
Reference in New Issue
Block a user