mirror of
https://github.com/nicoverbruggen/NVAlert.git
synced 2025-12-21 00:50:06 +01:00
Tweak collectionBehavior
This commit is contained in:
@@ -99,9 +99,11 @@ open class NVAlert {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Bring window to front
|
// Bring window to front
|
||||||
windowController.window?.collectionBehavior = .canJoinAllSpaces
|
if let window = windowController.window {
|
||||||
windowController.window?.makeKeyAndOrderFront(nil)
|
window.collectionBehavior = [.participatesInCycle, .managed]
|
||||||
windowController.window?.setCenterPosition(offsetY: 70)
|
window.makeKeyAndOrderFront(nil)
|
||||||
|
window.setCenterPosition(offsetY: 70)
|
||||||
|
}
|
||||||
|
|
||||||
// Show the modal
|
// Show the modal
|
||||||
let response = NSApplication.shared.runModal(for: windowController.window!)
|
let response = NSApplication.shared.runModal(for: windowController.window!)
|
||||||
|
|||||||
Reference in New Issue
Block a user