mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
.
This commit is contained in:
parent
26ecdd0103
commit
4bc6a1ae0d
@ -371,7 +371,7 @@ def callbackwrap(d, k, call, _):
|
||||
try:
|
||||
sig = inspect.signature(call)
|
||||
np = len(sig.parameters)
|
||||
if np == 1:
|
||||
if np >= 1:
|
||||
call(_)
|
||||
elif np == 0:
|
||||
call()
|
||||
@ -385,7 +385,7 @@ def comboboxcallbackwrap(internallist, d, k, call, _):
|
||||
try:
|
||||
sig = inspect.signature(call)
|
||||
np = len(sig.parameters)
|
||||
if np == 1:
|
||||
if np >= 1:
|
||||
call(_)
|
||||
elif np == 0:
|
||||
call()
|
||||
|
Loading…
x
Reference in New Issue
Block a user