Mailspring/app/internal_packages_disabled/plugins/lib/main.jsx
2017-09-04 22:42:08 -07:00

16 lines
463 B
JavaScript

import {PreferencesUIStore} from 'nylas-exports';
import PluginsView from './preferences-plugins';
export function activate() {
this.preferencesTab = new PreferencesUIStore.TabItem({
tabId: "Plugins",
displayName: "Plugins",
componentClassFn: () => PluginsView,
});
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
}
export function deactivate() {
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId)
}