From 47f3163267de8f21a08627e102aff89b1ea5b229 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 24 Mar 2024 18:05:59 +0100 Subject: [PATCH] fix(commandline): opening the commandline from the footer not showing custom themes --- frontend/src/ts/commandline/commandline.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/ts/commandline/commandline.ts b/frontend/src/ts/commandline/commandline.ts index 819a7e46d..e1fd0a196 100644 --- a/frontend/src/ts/commandline/commandline.ts +++ b/frontend/src/ts/commandline/commandline.ts @@ -162,8 +162,10 @@ async function goBackOrHide(): Promise { } async function filterSubgroup(): Promise { - // const configKey = getSubgroup().configKey; - const list = await getList(); + const subgroup = await getSubgroup(); + subgroup.beforeList?.(); + const list = subgroup.list; + const inputNoQuickSingle = inputValue .replace(/^>/gi, "") .toLowerCase() @@ -446,9 +448,6 @@ async function runActiveCommand(): Promise { updateInput(inputModeParams.value as string); hideCommands(); } else if (command.subgroup) { - if (command.subgroup.beforeList) { - command.subgroup.beforeList(); - } CommandlineLists.pushToStack( command.subgroup as MonkeyTypes.CommandsSubgroup );