fixed lag because of the theme applying

This commit is contained in:
Miodec 2021-01-29 17:31:00 +00:00
parent 080106c1df
commit 9bb2211ea7
2 changed files with 2 additions and 1 deletions

View file

@ -1910,6 +1910,7 @@ $("#commandLineWrapper").click((e) => {
$(document).keydown((e) => {
if (isPreviewingTheme) {
console.log("applying theme");
applyCustomThemeColors();
// previewTheme(config.theme, false);
}

View file

@ -1181,7 +1181,7 @@ function applyCustomThemeColors() {
});
} else {
$(".current-theme").text(config.theme.replace("_", " "));
previewTheme(config.theme);
previewTheme(config.theme, false);
clearCustomTheme();
}
setTimeout(() => {