1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-09 13:10:24 +01:00

🏗 Preparing for additional refactoring

This commit is contained in:
2022-02-17 19:23:23 +01:00
parent 9468a2e9f8
commit 634ffb4c57
2 changed files with 5 additions and 1 deletions

View File

@@ -7,7 +7,9 @@
import Cocoa
@available(*, deprecated, message: "Use BetterAlert API instead for 5.1 and above")
#warning("This deprecated class should be removed at the earliest convenience once no code relies on it.")
@available(*, deprecated, message: "Use the BetterAlert API instead")
class Alert {
public static func present(
@@ -17,6 +19,7 @@ class Alert {
secondButtonTitle: String = "",
style: NSAlert.Style = .informational
) -> Bool {
if !Thread.isMainThread {
fatalError("You should always present alerts on the main thread!")
}