From 9bfb31fcbee028eaecce75a743f2a0bd50b5807c Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Tue, 28 May 2024 07:54:34 -0600 Subject: remove the vis->initialized member I already fixed the reason that this even existed (vis_event_emit getting called at random times when the editor wasn't ready). The option checking in main() was moved up because I noticed it was in the wrong place while thinking about where to emit the INIT event. There is no reason to do a bunch of useless work just to print the version. --- event-basic.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'event-basic.c') diff --git a/event-basic.c b/event-basic.c index d59ef8a..e070522 100644 --- a/event-basic.c +++ b/event-basic.c @@ -4,11 +4,6 @@ #if !CONFIG_LUA bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { - if (!vis->initialized) { - vis->initialized = true; - ui_init(&vis->ui, vis); - } - va_list ap; va_start(ap, id); -- cgit v1.2.3