Open Makcal opened 6 days ago
In version 2.2 you can set on process result callback on window. This is not the same, but anyway, it can reduce size of function.
Yeah, that's not the same, however it would be great to have clear separation for a window, e.g. for buttons that start dialogs
I have a dialog that can start several different dialogs, but is limited to have one
on_process_result()
callback. This is why to distinguish these calls I passstart_data
in form of{"intent": "enter_name", "input": ...}
and my callback looks like:This can produce long and complex callbacks. I wonder if there can be a cleaner way to process results. Thinking a while I've come up with two proposals: