diff --git a/Plugins/PluginRepo/PluginRepo.plugin.js b/Plugins/PluginRepo/PluginRepo.plugin.js index ec5ce23825..da580fcfe9 100644 --- a/Plugins/PluginRepo/PluginRepo.plugin.js +++ b/Plugins/PluginRepo/PluginRepo.plugin.js @@ -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();} diff --git a/Plugins/ThemeRepo/ThemeRepo.plugin.js b/Plugins/ThemeRepo/ThemeRepo.plugin.js index 9ea848a68d..251937f92f 100644 --- a/Plugins/ThemeRepo/ThemeRepo.plugin.js +++ b/Plugins/ThemeRepo/ThemeRepo.plugin.js @@ -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();}