mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
C++: Fixed sixtyfps::blocking_invoke_from_main_loop
when the callable returns void
Fixes #623
This commit is contained in:
parent
a102e9ed8d
commit
d26e95fb95
3 changed files with 21 additions and 2 deletions
|
@ -67,9 +67,12 @@ TEST_CASE("Blocking Event from thread")
|
|||
return std::make_unique<int>(42);
|
||||
});
|
||||
called = *foo;
|
||||
sixtyfps::invoke_from_event_loop([&] {
|
||||
int xxx = 123;
|
||||
sixtyfps::blocking_invoke_from_event_loop([&] {
|
||||
sixtyfps::quit_event_loop();
|
||||
xxx = 888999;
|
||||
});
|
||||
REQUIRE(xxx == 888999);
|
||||
});
|
||||
|
||||
sixtyfps::run_event_loop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue