Skip to content

Commit

Permalink
Update Sources/AppKitNavigation/Navigation/ModalSessionContent.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen Celis <[email protected]>
  • Loading branch information
Mx-Iris and stephencelis authored Aug 27, 2024
1 parent 47ac7b3 commit 6111e32
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ public protocol ModalSessionContent: ModalContent {
extension NSWindow: ModalSessionContent {

public func appKitNavigationBeginModalSession() -> NSApplication.ModalSession {
__appKitNavigationBeginModalSession()
}

@objc func __appKitNavigationBeginModalSession() -> NSApplication.ModalSession {
let modalSession = NSApplication.shared.beginModalSession(for: self)
return modalSession
NSApplication.shared.beginModalSession(for: self)
}
}

Expand Down

0 comments on commit 6111e32

Please sign in to comment.