wx:batch/1 on Windows 10
Tue Jan 28 01:50:36 CET 2020
I just wanted to remind of error handling and assumed a completely frozen UI is worse than the UI with only some components added, especially in a generic 'batch'.
I wasn't sure about your particular use case, so I added "maybe".
On 28 January 2020 11:28:30 am AEDT, zxq9 <zxq9@REDACTED> wrote:
>On 2020/01/28 9:22, Dmitry Belyaev wrote:
>> batch(Window, Fun) ->
>> ok = wxWindow:freeze(Window),
>> after ->
>> ok = wxWindow:thaw(Window)
>> would be better
>What would be better about that? If there is a problem in the GUI
> (Fun()) the last thing I want to have happen is the Erlang half
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions