Repository navigation
Conversation
|
|
I believe this was by design... I am sure there are some improvements from here we should be able to adopt but this could need a bit more consideration. |
Maybe my initial explanation was a little unclear (or I am misunderstanding?) - all the model logic (ie stuff that modifies AlarmTreeItem<?>) still occurs off of the UI thread. The changes here only brings a little bit more code into the UI rendering so that all the code which interacts with the UI is on the same thread at the same time, since previously there was a split which introduced race conditions. Putting aside the initial startup code, the |



While trying to implement a search bar for the alarm tree, I ran into a few issues:
itemAddedanditemRemovedobtained the view item's parent on a separate thread, and then re-used that in code running on the UI thread later, same issues as above.tl;dr: made stuff which touches the UI run on the UI thread
Checklist
Testing:
Documentation: