mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-28 11:24:11 +08:00
16 lines
471 B
JavaScript
16 lines
471 B
JavaScript
import { PreferencesUIStore } from 'mailspring-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);
|
|
}
|