From ef7086e806b8cdd217d928d450570344befe1e07 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Sat, 23 Dec 2023 11:09:32 +0100 Subject: [PATCH] process any stragglers in validation queue --- haxe/ui/validation/ValidationManager.hx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/haxe/ui/validation/ValidationManager.hx b/haxe/ui/validation/ValidationManager.hx index a75a32456..d204ec821 100644 --- a/haxe/ui/validation/ValidationManager.hx +++ b/haxe/ui/validation/ValidationManager.hx @@ -148,15 +148,13 @@ class ValidationManager { isValidating = false; - /* - #if haxeui_flixel if (_queue.length > 0) { // lets process any stragglers - items maybe have been added while processing other parts - process(); + isPending = true; + Toolkit.callLater(process); + } else { + isPending = false; } - #end - */ - isPending = false; #if profile_validation _profileCount++; @@ -180,7 +178,7 @@ class ValidationManager { } - private function queueSortFunction(first:IValidating, second:IValidating):Int { + private inline function queueSortFunction(first:IValidating, second:IValidating):Int { var difference:Int = second.depth - first.depth; //Down to top return if (difference > 0) 1; else if (difference < 0) -1; else 0;