マウスの登録ボタンが出ないバグを修正

This commit is contained in:
suti7yk5032 2024-09-29 00:31:32 +09:00
parent b0865354a3
commit 970e04bc75

View file

@ -1200,7 +1200,7 @@ async def on_button(interaction: discord.Interaction):
for i in mouse_list["output_dict"].keys():
current_mouse_list = mouse_list['output_dict'][i]
if i['alt_name'] == None:
if current_mouse_list['alt_name'] == None:
mouse_register_button = discord.ui.Button(style=discord.ButtonStyle.primary, label=f"{str(current_mouse_list['mouse_number'])}", custom_id=f"mouseregister_{str(pc_number)}_{str(keyboard_number)}_{str(current_mouse_list['mouse_number'])}")
else:
mouse_register_button = discord.ui.Button(style=discord.ButtonStyle.primary, label=f"{str(current_mouse_list['mouse_number'])} 番 | ({current_mouse_list['alt_name']})", custom_id=f"mouseregister_{str(pc_number)}_{str(keyboard_number)}_{str(current_mouse_list['mouse_number'])}")