Skip to content

Commit

Permalink
Add missing DEBUG check
Browse files Browse the repository at this point in the history
  • Loading branch information
quanganhdo committed Sep 16, 2024
1 parent ce71bd1 commit 1a1d4e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DuckDuckGo/NavigationBar/View/MoreOptionsMenuButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ final class MoreOptionsMenuButton: MouseOverButton {
}

private func subscribeToUpdateInfo() {
#if SPARKLE
guard let updateController else { return }
cancellable = Publishers.CombineLatest(updateController.hasPendingUpdatePublisher, updateController.notificationDotPublisher)
.receive(on: DispatchQueue.main)
.sink { [weak self] hasPendingUpdate, needsNotificationDot in
self?.isNotificationVisible = hasPendingUpdate && needsNotificationDot
}
#endif
}

private func setupNotificationLayerIfNeeded() {
Expand Down

0 comments on commit 1a1d4e6

Please sign in to comment.