mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
15 lines
459 B
JavaScript
15 lines
459 B
JavaScript
import { PreferencesUIStore } from 'mailspring-exports';
|
|
|
|
export function activate() {
|
|
this.preferencesTab = new PreferencesUIStore.TabItem({
|
|
tabId: 'Folders',
|
|
displayName: 'Folders',
|
|
componentClassFn: () => require('./preferences-category-mapper').default,
|
|
});
|
|
|
|
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
|
|
}
|
|
|
|
export function deactivate() {
|
|
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
|
|
}
|