remove unnecessary validate_func arg from ux_input_numbers (Mk4)

(cherry picked from commit 14ce2ca6e0)
This commit is contained in:
scgbckbone 2025-01-14 10:41:53 +01:00
parent 2794916ee8
commit 3ccd73b8e6
3 changed files with 3 additions and 4 deletions

View File

@ -1209,7 +1209,7 @@ class PassphraseMenu(MenuSystem):
@classmethod
async def add_numbers(cls, *a):
# Mk4 only: add some digits (quick, easy)
pw = await ux_input_numbers(cls.pp_sofar, cls.check_length)
pw = await ux_input_numbers(cls.pp_sofar)
if pw is not None:
cls.pp_sofar = pw
cls.check_length()

View File

@ -122,7 +122,7 @@ async def ux_enter_number(prompt, max_value, can_cancel=False):
# cleanup leading zeros and such
value = str(min(int(value), max_value))
async def ux_input_numbers(val, validate_func):
async def ux_input_numbers(val):
# collect a series of digits
from glob import dis
from display import FontTiny
@ -161,7 +161,6 @@ async def ux_input_numbers(val, validate_func):
ch = await press.wait()
if ch == 'y':
val += here
validate_func()
return val
elif ch == 'x':
if here:

View File

@ -138,7 +138,7 @@ async def ux_enter_number(prompt, max_value, can_cancel=False):
# cleanup leading zeros and such
value = str(min(int(value), max_value))
async def ux_input_numbers(val, validate_func):
async def ux_input_numbers(val):
# collect a series of digits
# - not wanted on Q1; just get the digits mixed in w/ the text.
pass