Skip to content

Commit 523360f

Browse files
committed
fix: add isMuted to TabItemView Equatable guard
Add lhs.tab.isMuted == rhs.tab.isMuted to TabItemView == so that toggling mute on a workspace invalidates the .equatable() guard and forces the context menu label (Mute / Unmute Notifications) to re-render.
1 parent 226abc2 commit 523360f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/ContentView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10996,7 +10996,8 @@ private struct TabItemView: View, Equatable {
1099610996
lhs.showsModifierShortcutHints == rhs.showsModifierShortcutHints &&
1099710997
lhs.remoteContextMenuWorkspaceIds == rhs.remoteContextMenuWorkspaceIds &&
1099810998
lhs.allRemoteContextMenuTargetsConnecting == rhs.allRemoteContextMenuTargetsConnecting &&
10999-
lhs.allRemoteContextMenuTargetsDisconnected == rhs.allRemoteContextMenuTargetsDisconnected
10999+
lhs.allRemoteContextMenuTargetsDisconnected == rhs.allRemoteContextMenuTargetsDisconnected &&
11000+
lhs.tab.isMuted == rhs.tab.isMuted
1100011001
}
1100111002

1100211003
// Use plain references instead of @EnvironmentObject to avoid subscribing

0 commit comments

Comments
 (0)