forked from aparoksha/adwaita-swift
Fix adwaita-swift not building on macOS
This commit is contained in:
parent
8b27a08764
commit
a4b565723b
@ -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 }
|
||||
|
||||
@ -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] = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user