fixed buttons that are supposed to change the commandline list not working

This commit is contained in:
Jack 2021-04-02 15:35:45 +01:00
parent d2738fd7c2
commit c61ba1baa5
4 changed files with 6 additions and 6 deletions

View file

@ -61,7 +61,7 @@ if (Object.keys(layouts).length > 0) {
});
}
let commandsKeymapLayouts = {
export let commandsKeymapLayouts = {
title: "Change keymap layout...",
list: [
{
@ -413,7 +413,7 @@ let commandsDifficulty = {
],
};
let commandsEnableAds = {
export let commandsEnableAds = {
title: "Set enable ads...",
list: [
{
@ -1117,7 +1117,7 @@ let commandsPageWidth = {
],
};
let themeCommands = {
export let themeCommands = {
title: "Change theme...",
list: [],
};

View file

@ -498,6 +498,6 @@ $(document).keydown((e) => {
});
$(document).on("click", "#commandLineMobileButton", () => {
CommandlineLists.setCurrent(CommandlineLists.defaultCommands);
CommandlineLists.setCurrent([CommandlineLists.defaultCommands]);
show();
});

View file

@ -246,6 +246,6 @@ export function refreshKeys(layout) {
}
$(document).on("click", ".keymap .r5 #KeySpace", (e) => {
CommandlineLists.setCurrent(CommandlineLists.commandsKeymapLayouts);
CommandlineLists.setCurrent([CommandlineLists.commandsKeymapLayouts]);
Commandline.show();
});

View file

@ -249,7 +249,7 @@ $(document).on("click", "#bottom .leftright .right .current-theme", (e) => {
// if (Config.customTheme) {
// toggleCustomTheme();
// }
CommandlineLists.setCurrent(CommandlineLists.themeCommands);
CommandlineLists.setCurrent([CommandlineLists.themeCommands]);
Commandline.show();
}
});