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 e209473
Showing 1 changed file with 1 addition and 1 deletion.
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 e209473

Please sign in to comment.