From d013eefd45e0bba197389bd006256114d2b63300 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Thu, 9 Dec 2021 12:01:40 +0100 Subject: [PATCH] Minor modification. --- website/o3dv/js/sidebarsettingspanel.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/website/o3dv/js/sidebarsettingspanel.js b/website/o3dv/js/sidebarsettingspanel.js index 82c6529..27ff8e2 100644 --- a/website/o3dv/js/sidebarsettingspanel.js +++ b/website/o3dv/js/sidebarsettingspanel.js @@ -342,16 +342,14 @@ OV.SidebarSettingsPanel = class extends OV.SidebarPanel resetToDefaultsButton.addEventListener ('click', () => { this.settings.backgroundColor = defaultSettings.backgroundColor; this.settings.defaultColor = defaultSettings.defaultColor; - this.backgroundColorSection.Update (defaultSettings.backgroundColor); - this.defaultColorSection.Update (defaultSettings.defaultColor); - this.settings.showEdges = defaultSettings.showEdges; this.settings.edgeColor = defaultSettings.edgeColor; this.settings.edgeThreshold = defaultSettings.edgeThreshold; - this.edgeDisplaySection.Update (defaultSettings.showEdges, defaultSettings.edgeColor, defaultSettings.edgeThreshold); - this.callbacks.onEdgeDisplayChange (); - this.settings.themeId = defaultSettings.themeId; + + this.backgroundColorSection.Update (defaultSettings.backgroundColor); + this.defaultColorSection.Update (defaultSettings.defaultColor); + this.edgeDisplaySection.Update (defaultSettings.showEdges, defaultSettings.edgeColor, defaultSettings.edgeThreshold); this.themeSection.Update (defaultSettings.themeId); this.callbacks.onThemeChange (); });