Skip to content

[usage] Externally trigger UI update #113

@EinDev

Description

@EinDev

How can i trigger a simple Label to update from another thread?
As soon as i enter the event loop the thread becomes blocking, until a event is called.
But as far as i can see these events are only internal events such as mouse move events.

If i want to use EventLoop#next_tick, i need the UI which is a Rc<iui::ui::UIToken which i can only call from the owning thread. If i want to update the Label, the same occurs. How can i change it?

Maybe i did understand something wrong, if so feel free to correct me :)

Also another question: The Label seems to flash quickly as i update it. Is this expected behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions