From bd467020af5d174090cdf0a80efec2726063a0d8 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 28 Mar 2023 21:25:13 +0200 Subject: [PATCH] removed duplicate function calls --- frontend/src/ts/settings/theme-picker.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/ts/settings/theme-picker.ts b/frontend/src/ts/settings/theme-picker.ts index 5dbd34baf..438a8bcc4 100644 --- a/frontend/src/ts/settings/theme-picker.ts +++ b/frontend/src/ts/settings/theme-picker.ts @@ -249,7 +249,6 @@ export async function refreshButtons(): Promise { } themesEl.innerHTML = themesElHTML; } - updateActiveButton(); } export function setCustomInputs(noThemeUpdate = false): void { @@ -368,7 +367,6 @@ $(".pageSettings").on("click", ".section.themes .theme.button", (e) => { const theme = $(e.currentTarget).attr("theme"); if (!$(e.target).hasClass("favButton") && theme !== undefined) { UpdateConfig.setTheme(theme); - updateActiveButton(); } });