Skip to content

Commit 4518e4c

Browse files
committed
Changed variable name isManuallyShown to isPresented, and notificationOverlay to notificationPanel. Fixed SwiftLint errors.
1 parent 951e899 commit 4518e4c

4 files changed

Lines changed: 1 addition & 435 deletions

File tree

CodeEdit/Features/Documents/WorkspaceDocument/WorkspaceDocument.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ final class WorkspaceDocument: NSDocument, ObservableObject, NSToolbarDelegate {
6161
deinit {
6262
cancellables.forEach { $0.cancel() }
6363
NotificationCenter.default.removeObserver(self)
64-
notificationOverlaySubscription?.cancel()
64+
notificationPanelSubscription?.cancel()
6565
}
6666

6767
func getFromWorkspaceState(_ key: WorkspaceStateKey) -> Any? {

CodeEdit/Features/Notifications/NotificationManager.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ final class NotificationManager: NSObject, ObservableObject {
5656
notifications.filter { !$0.isRead }.count
5757
}
5858

59-
/// Whether there are currently notifications being displayed in the overlay
60-
var hasActiveNotification: Bool {
61-
!notifications.isEmpty
62-
}
63-
6459
/// Posts a new notification
6560
/// - Parameters:
6661
/// - iconSymbol: SF Symbol or CodeEditSymbol name for the notification icon

CodeEdit/Features/Notifications/ViewModels/NotificationOverlayViewModel.swift

Lines changed: 0 additions & 265 deletions
This file was deleted.

0 commit comments

Comments
 (0)