Closed J0sephDavis closed 9 months ago
Thanks! Very nicely formatted bug report.
See the functions:
// Start/Stop the main loop.
void Loop(Component);
void Exit();
Closure ExitLoopClosure();
ExitLoopClosure() return a closure. If you don't call it, you get nothing.
You should use screen.ExitLoopClosure()()
or directly screen.Exit()
.
Expected Behavior:
Call screen.ExitLoopClosure() within a component (or component decorator) constructed by CatchEvent(...). Application exits.
Experienced Beahavior:
Nothing.
Workaround:
Replace screen.ExitLoopClosure() with screen.Exit().
Code similar to the FTXUI Main Page, section: Catch Event
The Cmake used