From df3980d7457b085f377ee29fb4a12a14f35cbac5 Mon Sep 17 00:00:00 2001 From: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com> Date: Thu, 9 Jun 2022 21:25:21 +0300 Subject: [PATCH] small fix for themes popup (#3085) aNOOBisTheGod * spacebar in presets and tags addition * super mega spacebar remake * style fix * final name removal in ui * replaceAll in ape removal * using display above account chart * create preset in command line addition * testing removal * one more testing removal * create tag command line addition * Update commandline-lists.ts * moved add commands to the bottom hiding if user is not signed in * refactor * hiding tags and presets when signed out * fixed presets and tags display in alerts * russian_25k and russian_50k addition * russian 375k addition * lil fix * fixed windows auto-reload error * Revert "fixed windows auto-reload error" This reverts commit ea226212322db148a9d7923ca1717cb9818161a4. * Revert "Revert "fixed windows auto-reload error"" This reverts commit 669cec42171e755623fa71bde1a3daf6f91537c6. * Revert "Revert "Revert "fixed windows auto-reload error""" This reverts commit d90352633cd3d431505a2b1f02e864e8dc773e14. * themes popup small fix * using && Co-authored-by: Miodec Co-authored-by: Vasiliy Novozhilov --- frontend/src/ts/elements/commandline.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/elements/commandline.ts b/frontend/src/ts/elements/commandline.ts index 9174707da..149f0d54b 100644 --- a/frontend/src/ts/elements/commandline.ts +++ b/frontend/src/ts/elements/commandline.ts @@ -11,6 +11,7 @@ import { Auth } from "../firebase"; import { isAnyPopupVisible } from "../utils/misc"; let commandLineMouseMode = false; +let themeChosen = false; function showInput( command: string, @@ -164,6 +165,7 @@ function updateSuggested(): void { } export let show = (): void => { + themeChosen = false; if (!$(".page.pageLoading").hasClass("hidden")) return; Focus.set(false); $("#commandLine").removeClass("hidden"); @@ -481,7 +483,7 @@ $("#commandLineWrapper #commandLine .suggestions").on("mouseover", (e) => { if (!/font/gi.test(obj.id)) { UpdateConfig.previewFontFamily(Config.fontFamily); } - if (obj.hover) obj.hover(); + if (obj.hover && !themeChosen) obj.hover(); } }); } catch (e) {} @@ -491,6 +493,7 @@ $(document).on( "click", "#commandLineWrapper #commandLine .suggestions .entry", (e) => { + themeChosen = true; $(".suggestions .entry").removeClass("activeKeyboard"); trigger($(e.currentTarget).attr("command") as string); }