diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-10-12 21:30:19 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-10-15 18:23:15 +0100 |
| commit | 879a6922b0c59108de91f191926d0dde62cd2bd6 (patch) | |
| tree | fea881ae9160912caf22ecec6237c5a677979a6b /emcc.c | |
| parent | f11e93e3bd05d133d2b0df7dd6c4a33f4ed7fefa (diff) | |
| download | puzzles-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -882,6 +882,8 @@ void load_game(const char *buffer, int len) select_appropriate_preset(); resize(); midend_redraw(me); + update_permalinks(); + update_undo_redo(); } } |