remove leftover autoload handling code
This commit is contained in:
parent
e5c7a0b3ba
commit
5b995e3c13
|
@ -115,7 +115,7 @@ export default class Modals {
|
|||
placeholder: src,
|
||||
original: src,
|
||||
onClickUntrusted: link => link.openHref(),
|
||||
renderLinkComponent: () => React.createElement(MaskedLink, props)
|
||||
renderLinkComponent: props => React.createElement(this.MaskedLink, props)
|
||||
}, props)));
|
||||
}, {modalKey: key});
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ export default class Modals {
|
|||
static showChangelogModal(options = {}) {
|
||||
const ModalStack = WebpackModules.getByProps("push", "update", "pop", "popWithKey");
|
||||
const ChangelogClasses = WebpackModules.getByProps("fixed", "improved");
|
||||
const TextElement = WebpackModules.findByDisplayName("Text");
|
||||
const TextElement = WebpackModules.getByDisplayName("LegacyText");
|
||||
const FlexChild = WebpackModules.getByProps("Child");
|
||||
const Titles = WebpackModules.getByProps("Tags", "default");
|
||||
const Changelog = WebpackModules.getModule(m => m.defaultProps && m.defaultProps.selectable == false);
|
||||
|
|
|
@ -125,7 +125,6 @@ export default class AddonCard extends React.Component {
|
|||
|
||||
return <div className="bd-controls">
|
||||
{this.props.hasSettings && this.makeControlButton(Strings.Addons.addonSettings, <CogIcon size={"20px"} />, this.showSettings, {disabled: !this.props.enabled})}
|
||||
{this.props.showReloadIcon && this.makeControlButton(Strings.Addons.reload, <ReloadIcon size={"20px"} />, this.reload)}
|
||||
{this.props.editAddon && this.makeControlButton(Strings.Addons.editAddon, <EditIcon size={"20px"} />, this.props.editAddon)}
|
||||
{this.props.confirmAddonDelete && this.makeControlButton(Strings.Addons.deleteAddon, <DeleteIcon size={"20px"} />, this.props.confirmAddonDelete, {danger: true})}
|
||||
</div>;
|
||||
|
|
|
@ -207,7 +207,6 @@ export default class AddonList extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const showReloadIcon = !Settings.get("settings", "addons", "autoReload");
|
||||
const storeEnabled = Settings.get("settings", "addons", "store");
|
||||
const Page = PAGES[this.currentPage]?.component || (() => null);
|
||||
|
||||
|
@ -222,9 +221,8 @@ export default class AddonList extends React.Component {
|
|||
value: id
|
||||
}))}
|
||||
>
|
||||
{showReloadIcon && <Reload className="bd-reload" onClick={this.reload} />}
|
||||
</TabBar>
|
||||
: <SettingsTitle key="title" text={this.props.title} otherChildren={showReloadIcon && <Reload className="bd-reload" onClick={this.reload} />} />
|
||||
: <SettingsTitle key="title" text={this.props.title} />
|
||||
}
|
||||
<div className="bd-addon-list-filters">
|
||||
<div className="bd-select-wrapper">
|
||||
|
|
|
@ -38,7 +38,6 @@ export default class InstalledPage extends React.Component {
|
|||
const containerState = this.props.state;
|
||||
const {addonList, addonState, onChange, reload} = this.props;
|
||||
|
||||
const showReloadIcon = !Settings.get("settings", "addons", "autoReload");
|
||||
let sortedAddons = addonList.sort((a, b) => {
|
||||
const sortByEnabled = this.props.sort === "isEnabled";
|
||||
const first = sortByEnabled ? addonState[a.id] : a[this.props.sort];
|
||||
|
@ -69,7 +68,6 @@ export default class InstalledPage extends React.Component {
|
|||
type={this.props.type}
|
||||
editAddon={this.props.editAddon.bind(this, addon.id)}
|
||||
confirmAddonDelete={this.props.confirmAddonDelete.bind(this, addon)}
|
||||
showReloadIcon={showReloadIcon}
|
||||
key={addon.id}
|
||||
enabled={addonState[addon.id]}
|
||||
addon={addon}
|
||||
|
|
Loading…
Reference in New Issue