mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
import { ComponentRegistry, WorkspaceStore } from 'mailspring-exports';
|
|
import UndoRedoToast from './undo-redo-toast';
|
|
|
|
export function activate() {
|
|
if (AppEnv.isMainWindow()) {
|
|
ComponentRegistry.register(UndoRedoToast, {
|
|
location: WorkspaceStore.Sheet.Global.Footer,
|
|
});
|
|
}
|
|
}
|
|
|
|
export function deactivate() {
|
|
if (AppEnv.isMainWindow()) {
|
|
ComponentRegistry.unregister(UndoRedoToast);
|
|
}
|
|
}
|