From 4c550c7d9d7f48339eb4845b6f130654d3cb825b Mon Sep 17 00:00:00 2001 From: Sanidhya Singh Date: Sat, 2 Mar 2024 02:53:43 +0530 Subject: [PATCH] fix(commandline): prevent theme switch when opening the commanline from the footer (sanidhyas3s) (#5163) fixes #5103 Co-authored-by: Jack --- frontend/src/ts/commandline/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/commandline/index.ts b/frontend/src/ts/commandline/index.ts index 69c8b2835943..0423af3f9bc4 100644 --- a/frontend/src/ts/commandline/index.ts +++ b/frontend/src/ts/commandline/index.ts @@ -158,7 +158,7 @@ function showFound(): void { if (!/font/gi.test(obj.id)) { UpdateConfig.previewFontFamily(Config.fontFamily); } - if (obj.hover) obj.hover(); + if (obj.hover && !obj.id.startsWith("changeTheme")) obj.hover(); return; } }