From 85c4c8dfc2ec35800d2b9986f6fa8132ea4fc120 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 12 Dec 2018 12:48:29 +0100 Subject: [PATCH] SettingsButtons now are added when going to Themes Page with BDcontextMenu --- Plugins/ThemeSettings/ThemeSettings.plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/ThemeSettings/ThemeSettings.plugin.js b/Plugins/ThemeSettings/ThemeSettings.plugin.js index 89495b026f..9f7fad9f75 100644 --- a/Plugins/ThemeSettings/ThemeSettings.plugin.js +++ b/Plugins/ThemeSettings/ThemeSettings.plugin.js @@ -7,7 +7,7 @@ class ThemeSettings { getDescription () {return "Allows you to change Theme Variables within BetterDiscord.";} - getVersion () {return "1.0.3";} + getVersion () {return "1.0.4";} getAuthor () {return "DevilBro";} @@ -63,6 +63,7 @@ class ThemeSettings { setImmediate(() => { if (node.tagName && node.getAttribute("layer-id") == "user-settings") { BDFDB.addObserver(this, node, {name:"innerSettingsWindowObserver"}, {childList:true,subtree:true}); + if (this.isThemesPage(node))for (let li of node.querySelectorAll(".bda-slist > li")) this.addSettingsButton(li); } }); });