Closed gavr123456789 closed 7 hours ago
constructor FileFromDialog fromWindow: window::org.gnome.adw.ApplicationWindow doWithContent::[String -> ] = [ fileDialog = FileDialog new fileDialog openInside: window ifCancelled: null whenReadyDo: [ x, asyncResult, z -> filePath = fileDialog openFinish: asyncResult |> getPath x = FileSystem read: filePath toPath x echo doWithContent String: x ] ]
// generates fun FileFromDialog.Companion.fromWindowDoWithContent(window: org.gnome.adw.ApplicationWindow, doWithContent: (String,) -> Unit): reader.FileFromDialog
fun FileFromDialog.Companion.fromWindowDoWithContent(window: org.gnome.adw.ApplicationWindow, doWithContent: (String,) -> Unit): reader.FileFromDialog
// generates
fun FileFromDialog.Companion.fromWindowDoWithContent(window: org.gnome.adw.ApplicationWindow, doWithContent: (String,) -> Unit): reader.FileFromDialog