From 09fbbbf25e7e58461fceb635ac73d562af634126 Mon Sep 17 00:00:00 2001 From: Estebene Date: Sun, 2 May 2021 16:54:05 +1200 Subject: [PATCH] Fixed scroll random theme bug --- src/js/commandline.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/commandline.js b/src/js/commandline.js index 043a55012..6c9ac7827 100644 --- a/src/js/commandline.js +++ b/src/js/commandline.js @@ -494,7 +494,10 @@ $(document).keydown((e) => { CommandlineLists.current[CommandlineLists.current.length - 1]; $.each(list.list, (index, obj) => { if (obj.id == hoverId) { - if (!/theme/gi.test(obj.id) || obj.id === "toggleCustomTheme") + if ( + (!/theme/gi.test(obj.id) || obj.id === "toggleCustomTheme") && + !ThemeController.randomTheme + ) ThemeController.clearPreview(); if (!/font/gi.test(obj.id)) Config.previewFontFamily(Config.fontFamily);