Small UI event processing optimization. Helps debugging more than performance.

This commit is contained in:
Henrik Rydgård committed 2024-10-25 21:08:01 +02:00
1 parent 26f0117421
commit 7e6ef060c6
1 file changed
+3
+3
View File
@@ -72,6 +72,9 @@ void Event::Add(std::function<EventReturn(EventParams&)> func) {
// Call this from input thread or whatever, it doesn't matter
void Event::Trigger(EventParams &e) {
if (handlers_.empty()) {
return;
}
EventTriggered(this, e);
}