Right now the return value of
fl_choice() is a bit ambiguous as it can mean two different things:
- The first button was pressed
- The dialog was closed (e.g. using Escape)
Essentially this forces you to have the first button be the default "cancel" operation, which can be a bit inflexible.
Not sure how to solve this without breaking backwards compatibility, but ideally I'd like different return codes for these two cases. E.g.
-1 if the window is closed.
[ Direct Link to Message ]
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.