Skip to content

Commit

Permalink
Just save what was altered in check_keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Dec 4, 2023
1 parent 0b13392 commit ee649fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/client/preferences_savefile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@
vars["fps"] = fps

check_keybindings()
S["key_bindings"] << key_bindings

if(remembered_key_bindings)
for(var/i in GLOB.keybindings_by_name)
Expand Down Expand Up @@ -652,7 +653,7 @@
addedbind = TRUE
if(!addedbind)
notadded += kb
save_preferences()

if(length(notadded))
addtimer(CALLBACK(src, PROC_REF(announce_conflict), notadded), 5 SECONDS)

Expand Down

0 comments on commit ee649fd

Please sign in to comment.