From 58ca7db51854ea5f8a6e9f5f6feb449eac5bb9d0 Mon Sep 17 00:00:00 2001 From: Alexey Nurgaliev Date: Fri, 11 Aug 2023 00:42:53 +0300 Subject: [PATCH] add rewind button only if rewind enabled --- data/emulator.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/emulator.js b/data/emulator.js index c5ef8df..5691428 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -2036,9 +2036,11 @@ class EmulatorJS { {id: 24, label: this.localization('QUICK SAVE STATE')}, {id: 25, label: this.localization('QUICK LOAD STATE')}, {id: 26, label: this.localization('CHANGE STATE SLOT')}, - {id: 27, label: this.localization('FAST FORWARD')}, - {id: 28, label: this.localization('REWIND')} + {id: 27, label: this.localization('FAST FORWARD')} ); + if (window.EJS_rewindEnabled) { + buttons.push({id: 28, label: this.localization('REWIND')}); + } //if (_this.statesSupported === false) { // delete buttons[24]; // delete buttons[25];