From afb724fb3bab2c89be373d44de45d50dfda891c7 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Tue, 30 Nov 2021 21:20:42 +0100 Subject: [PATCH] Do not call event handlers since pickr calls them, too. --- website/o3dv/js/sidebarpanels.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/website/o3dv/js/sidebarpanels.js b/website/o3dv/js/sidebarpanels.js index d24713d..4d136d9 100644 --- a/website/o3dv/js/sidebarpanels.js +++ b/website/o3dv/js/sidebarpanels.js @@ -361,9 +361,7 @@ OV.SettingsSidebarPanel = class extends OV.SidebarPanel let resetToDefaultsButton = OV.AddDiv (this.contentDiv, 'ov_button outline ov_sidebar_button', 'Reset to Default'); resetToDefaultsButton.addEventListener ('click', () => { this.backgroundColorInput.pickr.setColor ('#' + OV.ColorToHexString (defaultSettings.backgroundColor)); - this.callbacks.onBackgroundColorChange (defaultSettings.backgroundColor); this.defaultColorInput.pickr.setColor ('#' + OV.ColorToHexString (defaultSettings.defaultColor)); - this.callbacks.onDefaultColorChange (defaultSettings.defaultColor); if (this.themeInput !== null) { this.themeInput.select (defaultSettings.themeId); this.callbacks.onThemeChange (defaultSettings.themeId);