mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
24 lines
755 B
JavaScript
24 lines
755 B
JavaScript
import { ComponentRegistry, WorkspaceStore } from 'mailspring-exports';
|
|
import UndoRedoThreadListToast from './undo-redo-thread-list-toast';
|
|
import UndoSendStore from './undo-send-store';
|
|
import UndoSendToast from './undo-send-toast';
|
|
|
|
export function activate() {
|
|
UndoSendStore.activate();
|
|
ComponentRegistry.register(UndoSendToast, {
|
|
location: WorkspaceStore.Sheet.Global.Footer,
|
|
});
|
|
if (AppEnv.isMainWindow()) {
|
|
ComponentRegistry.register(UndoRedoThreadListToast, {
|
|
location: WorkspaceStore.Location.ThreadList,
|
|
});
|
|
}
|
|
}
|
|
|
|
export function deactivate() {
|
|
UndoSendStore.deactivate();
|
|
ComponentRegistry.unregister(UndoSendToast);
|
|
if (AppEnv.isMainWindow()) {
|
|
ComponentRegistry.unregister(UndoRedoThreadListToast);
|
|
}
|
|
}
|