clean code

This commit is contained in:
JellyBrick
2023-11-27 19:26:45 +09:00
parent 3ffbfbe0e3
commit 2fe28cf126
16 changed files with 43 additions and 41 deletions

View File

@ -2,8 +2,8 @@ import { register } from 'electron-localshortcut';
import { BrowserWindow, Menu, MenuItem, ipcMain, nativeImage } from 'electron';
import { BackendContext } from '@/types/contexts';
import { InAppMenuConfig } from '@/plugins/in-app-menu/index';
import type { BackendContext } from '@/types/contexts';
import type { InAppMenuConfig } from './index';
export const onMainLoad = ({ window: win, ipc: { handle, send } }: BackendContext<InAppMenuConfig>) => {
win.on('close', () => {