From 21bc3c7b2d1d06502edc83f6177e07cbdbb3c2a3 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 27 Feb 2019 15:39:56 +0100 Subject: [PATCH] stuff --- Plugins/PluginRepo/PluginRepo.plugin.js | 2 ++ Plugins/ThemeRepo/ThemeRepo.plugin.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Plugins/PluginRepo/PluginRepo.plugin.js b/Plugins/PluginRepo/PluginRepo.plugin.js index 189e01c29c..39a2b2a517 100644 --- a/Plugins/PluginRepo/PluginRepo.plugin.js +++ b/Plugins/PluginRepo/PluginRepo.plugin.js @@ -609,6 +609,8 @@ class PluginRepo { console.log(`%c[${this.name}]%c`, "color: #3a71c1; font-weight: 700;", "", "Finished fetching Plugins."); if (document.querySelector(".bd-pluginrepobutton")) BDFDB.showToast(`Finished fetching Plugins.`, {type:"success"}); if (outdated > 0) { + var oldbarbutton = document.querySelector(".pluginrepo-notice " + BDFDB.dotCN.noticedismiss); + if (oldbarbutton) oldbarbutton.click(); var bar = BDFDB.createNotificationsBar(`${outdated} of your Plugins ${outdated == 1 ? "is" : "are"} outdated. Check:`,{type:"danger",btn:"PluginRepo",selector:"pluginrepo-notice"}); bar.querySelector(BDFDB.dotCN.noticebutton).addEventListener("click", e => { this.openPluginRepoModal(true); diff --git a/Plugins/ThemeRepo/ThemeRepo.plugin.js b/Plugins/ThemeRepo/ThemeRepo.plugin.js index 0574713708..df9ab08dd0 100644 --- a/Plugins/ThemeRepo/ThemeRepo.plugin.js +++ b/Plugins/ThemeRepo/ThemeRepo.plugin.js @@ -734,6 +734,8 @@ class ThemeRepo { console.log(`%c[${this.name}]%c`, "color: #3a71c1; font-weight: 700;", "", "Finished fetching Themes."); if (document.querySelector(".bd-themerepobutton")) BDFDB.showToast(`Finished fetching Themes.`, {type:"success"}); if (outdated > 0) { + var oldbarbutton = document.querySelector(".themerepo-notice " + BDFDB.dotCN.noticedismiss); + if (oldbarbutton) oldbarbutton.click(); var bar = BDFDB.createNotificationsBar(`${outdated} of your Themes ${outdated == 1 ? "is" : "are"} outdated. Check:`,{type:"danger",btn:"ThemeRepo",selector:"themerepo-notice"}); bar.querySelector(BDFDB.dotCN.noticebutton).addEventListener("click", e => { this.openThemeRepoModal(true);