mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
16 lines
463 B
JavaScript
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)
|
|
}
|