File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
CodeEdit/Features/Notifications/ViewModels Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -238,14 +238,16 @@ final class NotificationPanelViewModel: ObservableObject {
238238 }
239239 let shouldShow = !self . visibleNotifications. isEmpty || NotificationManager . shared. unreadCount > 0
240240 if shouldShow && toolbar. items. filter ( { $0. itemIdentifier == . notificationItem } ) . first == nil {
241- guard let activityItemIdx = toolbar. items. firstIndex ( where: { $0. itemIdentifier == . activityViewer } ) else {
241+ guard let activityItemIdx = toolbar. items
242+ . firstIndex ( where: { $0. itemIdentifier == . activityViewer } ) else {
242243 return
243244 }
244245 toolbar. insertItem ( withItemIdentifier: . space, at: activityItemIdx + 1 )
245246 toolbar. insertItem ( withItemIdentifier: . notificationItem, at: activityItemIdx + 2 )
246247 }
247248
248- if !shouldShow, let index = toolbar. items. firstIndex ( where: { $0. itemIdentifier == . notificationItem } ) {
249+ if !shouldShow, let index = toolbar. items
250+ . firstIndex ( where: { $0. itemIdentifier == . notificationItem } ) {
249251 toolbar. removeItem ( at: index)
250252 toolbar. removeItem ( at: index)
251253 }
You can’t perform that action at this time.
0 commit comments