mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
17 lines
450 B
React
17 lines
450 B
React
|
import {PreferencesUIStore} from 'nylas-exports';
|
||
|
import PluginsView from './preferences-plugins';
|
||
|
|
||
|
export function activate() {
|
||
|
this.preferencesTab = new PreferencesUIStore.TabItem({
|
||
|
tabId: "Plugins",
|
||
|
displayName: "Plugins",
|
||
|
component: PluginsView,
|
||
|
});
|
||
|
|
||
|
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
|
||
|
}
|
||
|
|
||
|
export function deactivate() {
|
||
|
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId)
|
||
|
}
|