マウスの登録ボタンが出ないバグを修正
This commit is contained in:
parent
b0865354a3
commit
970e04bc75
1 changed files with 1 additions and 1 deletions
|
@ -1200,7 +1200,7 @@ async def on_button(interaction: discord.Interaction):
|
||||||
|
|
||||||
for i in mouse_list["output_dict"].keys():
|
for i in mouse_list["output_dict"].keys():
|
||||||
current_mouse_list = mouse_list['output_dict'][i]
|
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'])}")
|
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:
|
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'])}")
|
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'])}")
|
||||||
|
|
Loading…
Reference in a new issue