always updating footer theme name when applying theme

fixes #2674
This commit is contained in:
Miodec 2022-03-13 21:12:43 +01:00
parent 622e016db2
commit bb294db746

View file

@ -151,15 +151,15 @@ function apply(themeName: string, isCustom: boolean, isPreview = false): void {
}
if (!isPreview) {
ThemeColors.getAll().then((colors) => {
$(".current-theme .text").text(
isCustom ? "custom" : themeName.replace(/_/g, " ")
);
$(".keymap-key").attr("style", "");
ChartController.updateAllChartColors();
updateFavicon(128, 32);
$("#metaThemeColor").attr("content", colors.bg);
});
}
$(".current-theme .text").text(
isCustom ? "custom" : themeName.replace(/_/g, " ")
);
});
}