mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-04-23 09:18:40 +02:00
Fix endSheet deprecation warning on OS X
This commit is contained in:
@@ -1631,7 +1631,9 @@ public class Manager : ArmchairManager {
|
||||
}
|
||||
#elseif os(OSX)
|
||||
if let window = NSApplication.sharedApplication().keyWindow {
|
||||
NSApp.endSheet(window)
|
||||
if let parent = window.sheetParent {
|
||||
parent.endSheet(window)
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user