Fix adwaita-swift not building on macOS

This commit is contained in:
david-swift 2024-04-11 20:50:00 +02:00
parent 8b27a08764
commit a4b565723b
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ extension App {
/// Initialize and get the GTUI app.
///
/// To run the app, call the ``GTUIApp/run()`` function.
/// To run the app, call the ``GTUIApp/run(automaticSetup:manualSetup:)`` function.
public static func setupApp() -> GTUIApp {
var appInstance = self.init()
appInstance.app = GTUIApp(appInstance.id) { appInstance }

View File

@ -244,7 +244,7 @@ func alertdialog_on_close_cb(
var id = ""
if let answer {
let answer = String(cString: answer)
id = .init(answer.split(separator: "....").first ?? "")
id = .init(answer.components(separatedBy: "....").first ?? "")
(storage.fields[AlertDialog.callbacks + id] as? [String: () -> Void])?[answer]?()
}
storage.content[AlertDialog.dialogID + id] = []