mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Save settings - for cheat menu
This commit is contained in:
parent
2096fcfe16
commit
c3719b100e
1 changed files with 2 additions and 0 deletions
|
@ -2342,6 +2342,7 @@ class EmulatorJS {
|
||||||
checked: false
|
checked: false
|
||||||
});
|
});
|
||||||
this.updateCheatUI();
|
this.updateCheatUI();
|
||||||
|
this.saveSettings();
|
||||||
})
|
})
|
||||||
this.addEventListener(closeButton, "click", (e) => {
|
this.addEventListener(closeButton, "click", (e) => {
|
||||||
popups[0].remove();
|
popups[0].remove();
|
||||||
|
@ -2379,6 +2380,7 @@ class EmulatorJS {
|
||||||
input.checked = !input.checked;
|
input.checked = !input.checked;
|
||||||
this.cheats[i].checked = input.checked;
|
this.cheats[i].checked = input.checked;
|
||||||
this.cheatChanged(input.checked, code, i);
|
this.cheatChanged(input.checked, code, i);
|
||||||
|
this.saveSettings();
|
||||||
})
|
})
|
||||||
const close = this.createElement("a");
|
const close = this.createElement("a");
|
||||||
close.classList.add("ejs_cheat_row_button");
|
close.classList.add("ejs_cheat_row_button");
|
||||||
|
|
Loading…
Reference in a new issue