vxfw: don't clear ctx.cmds

We assert we have handled all commands before rendering. If we clear, we
definitely will pass the assert, even if we don't handle them all.
This commit is contained in:
Tim Culverhouse 2024-12-19 10:03:06 -06:00
parent 4d927c4320
commit a753e08f8a

View file

@ -118,7 +118,6 @@ pub fn run(self: *App, widget: vxfw.Widget, opts: Options) anyerror!void {
// Reset our context
ctx.consume_event = false;
ctx.phase = .capturing;
ctx.cmds.clearRetainingCapacity();
}
switch (event) {
.key_press => {