Tweak collectionBehavior

This commit is contained in:
2025-11-27 11:59:29 +01:00
parent a420f79742
commit a982f4b913

View File

@@ -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!)