Update ThemeRepo.plugin.js
This commit is contained in:
parent
a2a7e5d7af
commit
c60a9567fc
|
@ -2,7 +2,7 @@
|
|||
* @name ThemeRepo
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 2.3.5
|
||||
* @version 2.3.6
|
||||
* @description Allows you to download all Themes from BD's Website within Discord
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "ThemeRepo",
|
||||
"author": "DevilBro",
|
||||
"version": "2.3.5",
|
||||
"version": "2.3.6",
|
||||
"description": "Allows you to download all Themes from BD's Website within Discord"
|
||||
}
|
||||
};
|
||||
|
@ -370,7 +370,6 @@ module.exports = (_ => {
|
|||
return newCSS.replace(/\\n/g, "\n").replace(/\\t/g, "\t").replace(/\\r/g, "\r");
|
||||
}
|
||||
render() {
|
||||
let automaticLoading = BDFDB.BDUtils.getSettings(BDFDB.BDUtils.settingsIds.automaticLoading);
|
||||
if (!this.props.tab) this.props.tab = "Themes";
|
||||
|
||||
this.props.entries = (!loading.is && grabbedThemes.length ? this.filterThemes() : []).map(theme => BDFDB.ReactUtils.createElement(RepoCardComponent, {
|
||||
|
@ -564,8 +563,6 @@ module.exports = (_ => {
|
|||
plugin: _this,
|
||||
keys: ["general", key],
|
||||
label: _this.defaults.general[key].description,
|
||||
note: _this.defaults.general[key].autoload && !automaticLoading && "Automatic Loading has to be enabled",
|
||||
disabled: _this.defaults.general[key].autoload && !automaticLoading,
|
||||
value: _this.settings.general[key],
|
||||
onChange: value => {
|
||||
_this.settings.general[key] = value;
|
||||
|
@ -629,13 +626,6 @@ module.exports = (_ => {
|
|||
this.createThemeFile("ThemeFixer", "ThemeFixer.theme.css", `/**\n * @name ThemeFixer\n * @description ThemeFixerCSS for transparent themes\n * @author DevilBro\n * @version 1.0.3\n * @authorId 278543574059057154\n * @invite Jx3TjNS\n * @donate https://www.paypal.me/MircoWittrien\n * @patreon https://www.patreon.com/MircoWittrien\n */\n\n` + this.createFixerCSS(body), "startDownloaded");
|
||||
});
|
||||
}
|
||||
}),
|
||||
!automaticLoading && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
||||
className: BDFDB.disCN.marginbottom20,
|
||||
children: BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCNS.settingsrowtitle + BDFDB.disCNS.settingsrowtitledefault + BDFDB.disCN.cursordefault,
|
||||
children: "To experience Theme Repo in the best way. I would recommend you to enable BD's intern Automatic-Loading Feature, that way all downloaded Files are loaded into Discord without the need to reload."
|
||||
})
|
||||
})
|
||||
].flat(10).filter(n => n)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue