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
This commit is contained in:
ChrisColeTech
2026-08-24 11:12:04 -04:00
parent 18b793aee0
commit 4f5017e1a0
2 changed files with 5 additions and 7 deletions
+4 -6
View File
@@ -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:
+1 -1
View File
@@ -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]