UI: use closest loop for ui events instead of root loop
This commit is contained in:
parent
226b862e95
commit
93a28062b9
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ namespace psemek::ui
|
||||||
|
|
||||||
void element::post(std::function<void()> f)
|
void element::post(std::function<void()> f)
|
||||||
{
|
{
|
||||||
auto l = root()->loop();
|
auto l = loop();
|
||||||
if (l)
|
if (l)
|
||||||
l->post(std::move(f));
|
l->post(std::move(f));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue