From c01ddc869b207ad09ac58a32ea9de0785592dd98 Mon Sep 17 00:00:00 2001 From: sergystepanov Date: Mon, 8 Feb 2021 23:24:01 +0300 Subject: [PATCH] Don't hide save/load after the help show --- web/js/controller.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/js/controller.js b/web/js/controller.js index 5bd2747e..d53c6f39 100644 --- a/web/js/controller.js +++ b/web/js/controller.js @@ -98,14 +98,15 @@ show: function (show, event) { if (this.shown === show) return; - if (state === app.state.game) { + const isGameScreen = state === app.state.game + if (isGameScreen) { stream.toggle(!show); } else { menuScreen.toggle(!show); } - keyButtons[KEY.SAVE].toggle(show); - keyButtons[KEY.LOAD].toggle(show); + keyButtons[KEY.SAVE].toggle(show || isGameScreen); + keyButtons[KEY.LOAD].toggle(show || isGameScreen); helpOverlay.toggle(show);