Skip to content

Commit a1231e0

Browse files
authored
Merge pull request #48 from apple1417/master
pull in mods base update
2 parents e6f6509 + 76b1baf commit a1231e0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/mods_base

src/ui_utils/reorder_box.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ def create_tooltip_string(
6161

6262
_: KW_ONLY
6363
tooltip: str = field(default=create_tooltip_string())
64-
buttons: MutableSequence[OptionBoxButton] = field(default_factory=list, repr=False) # pyright: ignore[reportIncompatibleVariableOverride]
64+
buttons: MutableSequence[OptionBoxButton] = field( # pyright: ignore[reportIncompatibleVariableOverride]
65+
default_factory=list[OptionBoxButton],
66+
repr=False,
67+
)
6568

6669
on_move: Callable[[Self, OptionBoxButton], None] | None = None
6770

src/willow2_mod_menu/outer_menu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ def marketplace_input_key(
352352
_3: Any,
353353
_4: BoundFunction,
354354
) -> tuple[type[Block], bool] | None:
355-
key: str = DLC_MENU_CONTROLLER_TO_KB_KEY_MAP.get(args.ukey, args.ukey)
355+
key: str = args.ukey
356+
key = DLC_MENU_CONTROLLER_TO_KB_KEY_MAP.get(key, key)
356357

357358
try:
358359
event: EInputEvent = args.uevent

0 commit comments

Comments
 (0)