This commit is contained in:
Mirco Wittrien 2020-07-17 13:48:16 +02:00
parent 51e329baf2
commit af5cea2951
2 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ var PluginRepo = (_ => {
let search = oldSettings ? n => n.section == BDFDB.DiscordConstants.UserSettingsSections.DEVELOPER_OPTIONS : n => n.section == BDFDB.DiscordConstants.UserSettingsSections.CHANGE_LOG || n.section == "changelog"
let index = e.instance.props.sections.indexOf(e.instance.props.sections.find(search));
if (index > -1) {
e.instance.props.sections.splice(index + 1, 0, {
e.instance.props.sections.splice(oldSettings ? index + 1 : index - 1, 0, {
label: "Plugin Repo",
section: "pluginrepo",
onClick: _ => {this.openPluginRepoModal();}

View File

@ -353,7 +353,7 @@ var ThemeRepo = (_ => {
let search = oldSettings ? (isPRinjected ? n => n.section == "pluginrepo" : n => n.section == BDFDB.DiscordConstants.UserSettingsSections.DEVELOPER_OPTIONS) : n => n.section == BDFDB.DiscordConstants.UserSettingsSections.CHANGE_LOG || n.section == "changelog"
let index = e.instance.props.sections.indexOf(e.instance.props.sections.find(search));
if (index > -1) {
e.instance.props.sections.splice(index + 1, 0, {
e.instance.props.sections.splice(oldSettings ? index + 1 : index - 1, 0, {
label: "Theme Repo",
section: "themerepo",
onClick: _ => {this.openThemeRepoModal();}