From 20c5cebc54a3a8a1426e58e0d1dcdd2c2589febd Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 7 May 2021 15:42:47 +0100 Subject: [PATCH] no need to set it like this, restart will handle it --- src/js/commandline-lists.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/js/commandline-lists.js b/src/js/commandline-lists.js index 4cd107ee5..f99bb5821 100644 --- a/src/js/commandline-lists.js +++ b/src/js/commandline-lists.js @@ -1664,16 +1664,17 @@ export let defaultCommands = { input: true, exec: (input) => { UpdateConfig.setCustomLayoutfluid(input); - UpdateConfig.setLayout( - Config.customLayoutfluid - ? Config.customLayoutfluid.split("_")[0] - : "qwerty" - ); - UpdateConfig.setKeymapLayout( - Config.customLayoutfluid - ? Config.customLayoutfluid.split("_")[0] - : "qwerty" - ); + if (Funbox.active === "layoutfluid") TestLogic.restart(); + // UpdateConfig.setLayout( + // Config.customLayoutfluid + // ? Config.customLayoutfluid.split("_")[0] + // : "qwerty" + // ); + // UpdateConfig.setKeymapLayout( + // Config.customLayoutfluid + // ? Config.customLayoutfluid.split("_")[0] + // : "qwerty" + // ); }, }, {