|
|
And this all happens in the context of the main() thread?
For example, it is never safe to call Fl::check(); from any non-main
thread context.
Actually, if this is all happening in the callback, I'd not call
Fl::check(); at all anyway, TBH.
I did another test. I kept the instructions order original, i.e. first
addMessage(), and then
startButton->deactivate(), but after this I called Fl::check() - and this removed the artifacts!
addMessage(gui.getTranslation().Translate(u8"Connected!").c_str());
startButton->deactivate();
Fl::check(); <<<<< THIS HELPED IN REMOVING THE ARTIFACTS
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/f6a26880-d29c-4cef-a117-4131250690den%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |