Makes switching loadout tabs not refresh preview, fixes new character loading. (#16167)

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-04-07 12:13:17 +00:00
committed by GitHub
co-authored by Matt Atlas
parent dfbb9cb3c4
commit 09d8f8506e
3 changed files with 44 additions and 1 deletions
@@ -356,7 +356,7 @@ var/list/gear_datums = list()
else if(href_list["select_category"])
current_tab = href_list["select_category"]
return TOPIC_REFRESH_UPDATE_PREVIEW
return TOPIC_REFRESH
else if(href_list["clear_loadout"])
pref.gear.Cut()
return TOPIC_REFRESH_UPDATE_PREVIEW
+1
View File
@@ -324,6 +324,7 @@ datum/preferences
else if(href_list["new_character_sql"])
new_setup(1)
to_chat(usr, "<span class='notice'>Your setup has been refreshed.</span>")
usr.client.prefs.update_preview_icon()
close_load_dialog(usr)
else if(href_list["close_load_dialog"])
close_load_dialog(usr)