From 4f5017e1a017f3b0c7ad44514631d2e4fdb45ddd Mon Sep 17 00:00:00 2001 From: ChrisColeTech Date: Mon, 24 Aug 2026 11:12:04 -0400 Subject: [PATCH] Move reset_bool into required, first widget, so it's not stuck at the bottom Widget render order follows INPUT_TYPES dict order, required fields first then optional. reset_bool sat alone in "optional", which always trails every required field regardless of listing order - so it always rendered last no matter what. Moved into "required" and placed first, matching Get Image/Video File By Index's own reset_bool convention in the sibling ComfyUI-Get-Random-File repo. Bump version from 1.0.11 to 1.0.12 --- line_counter.py | 10 ++++------ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/line_counter.py b/line_counter.py index d1a189a..ada189d 100644 --- a/line_counter.py +++ b/line_counter.py @@ -80,17 +80,15 @@ class SimpleNumberCounter: def INPUT_TYPES(cls): return { "required": { + "reset_bool": ("BOOLEAN", {"default": False, + "label_on": "Reset", + "label_off": "Off"}), "number_type": (["integer", "float"],), "mode": (["increment", "decrement", "increment_to_stop", "decrement_to_stop"],), "start": ("FLOAT", {"default": 0, "min": -18446744073709551615, "max": 18446744073709551615, "step": 0.01}), "stop": ("FLOAT", {"default": 0, "min": -18446744073709551615, "max": 18446744073709551615, "step": 0.01}), "step": ("FLOAT", {"default": 1, "min": 0, "max": 99999, "step": 0.01}), }, - "optional": { - "reset_bool": ("BOOLEAN", {"default": False, - "label_on": "Reset", - "label_off": "Off"}), - }, "hidden": { "unique_id": "UNIQUE_ID", } @@ -106,7 +104,7 @@ class SimpleNumberCounter: CATEGORY = "🤖 CCTech/Utilities" - def increment_number(self, number_type, mode, start, stop, step, unique_id, reset_bool=False): + def increment_number(self, reset_bool, number_type, mode, start, stop, step, unique_id): counter = int(start) if number_type == 'integer' else start if unique_id in self.counters: diff --git a/pyproject.toml b/pyproject.toml index 83060e1..0be863d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-line-counter" description = "This custom node package for ComfyUI is designed to streamline your workflow with powerful file-counting capabilities." -version = "1.0.11" +version = "1.0.12" license = {file = "LICENSE"} [project.urls]