stuff
This commit is contained in:
parent
51e329baf2
commit
af5cea2951
|
@ -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 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));
|
let index = e.instance.props.sections.indexOf(e.instance.props.sections.find(search));
|
||||||
if (index > -1) {
|
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",
|
label: "Plugin Repo",
|
||||||
section: "pluginrepo",
|
section: "pluginrepo",
|
||||||
onClick: _ => {this.openPluginRepoModal();}
|
onClick: _ => {this.openPluginRepoModal();}
|
||||||
|
|
|
@ -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 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));
|
let index = e.instance.props.sections.indexOf(e.instance.props.sections.find(search));
|
||||||
if (index > -1) {
|
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",
|
label: "Theme Repo",
|
||||||
section: "themerepo",
|
section: "themerepo",
|
||||||
onClick: _ => {this.openThemeRepoModal();}
|
onClick: _ => {this.openThemeRepoModal();}
|
||||||
|
|
Loading…
Reference in New Issue