add rewind button only if rewind enabled

This commit is contained in:
Alexey Nurgaliev 2023-08-11 00:42:53 +03:00
parent 0fcfdcd2b2
commit 58ca7db518

View file

@ -2036,9 +2036,11 @@ class EmulatorJS {
{id: 24, label: this.localization('QUICK SAVE STATE')}, {id: 24, label: this.localization('QUICK SAVE STATE')},
{id: 25, label: this.localization('QUICK LOAD STATE')}, {id: 25, label: this.localization('QUICK LOAD STATE')},
{id: 26, label: this.localization('CHANGE STATE SLOT')}, {id: 26, label: this.localization('CHANGE STATE SLOT')},
{id: 27, label: this.localization('FAST FORWARD')}, {id: 27, label: this.localization('FAST FORWARD')}
{id: 28, label: this.localization('REWIND')}
); );
if (window.EJS_rewindEnabled) {
buttons.push({id: 28, label: this.localization('REWIND')});
}
//if (_this.statesSupported === false) { //if (_this.statesSupported === false) {
// delete buttons[24]; // delete buttons[24];
// delete buttons[25]; // delete buttons[25];