aboutsummaryrefslogtreecommitdiff
path: root/emcc.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-10-12 21:30:19 +0100
committerBen Harris <bjh21@bjh21.me.uk>2022-10-15 18:23:15 +0100
commit879a6922b0c59108de91f191926d0dde62cd2bd6 (patch)
treefea881ae9160912caf22ecec6237c5a677979a6b /emcc.c
parentf11e93e3bd05d133d2b0df7dd6c4a33f4ed7fefa (diff)
downloadpuzzles-879a6922b0c59108de91f191926d0dde62cd2bd6.zip
puzzles-879a6922b0c59108de91f191926d0dde62cd2bd6.tar.gz
puzzles-879a6922b0c59108de91f191926d0dde62cd2bd6.tar.bz2
puzzles-879a6922b0c59108de91f191926d0dde62cd2bd6.tar.xz
js: Update permalinks and undo/redo buttons when loading
Without this, the "Undo" button ends up greyed even though it actually works. I'm not sure about whether updating the permalinks is necessary: maybe we don't need that in new_game() either.
Diffstat (limited to 'emcc.c')
-rw-r--r--emcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/emcc.c b/emcc.c
index 04ab178..5f21476 100644
--- a/emcc.c
+++ b/emcc.c
@@ -882,6 +882,8 @@ void load_game(const char *buffer, int len)
select_appropriate_preset();
resize();
midend_redraw(me);
+ update_permalinks();
+ update_undo_redo();
}
}