Skip to content

Commit

Permalink
Fix adwaita-swift not building on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Apr 11, 2024
1 parent 8b27a08 commit a4b5657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Adwaita/Model/User Interface/App/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion Sources/Adwaita/View/Dialogs/AlertDialog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand Down

0 comments on commit a4b5657

Please sign in to comment.