diff --git a/src/main/core/tray.ts b/src/main/core/tray.ts
index c497dd2..741f238 100644
--- a/src/main/core/tray.ts
+++ b/src/main/core/tray.ts
@@ -7,7 +7,7 @@ import {
import icoIcon from '../../../resources/icon.ico?asset'
import pngIcon from '../../../resources/icon.png?asset'
import { patchMihomoConfig } from './mihomoApi'
-import { createWindow, destroyTimer, mainWindow } from '..'
+import { mainWindow, showMainWindow } from '..'
import { app, ipcMain, Menu, shell, Tray } from 'electron'
import { dataDir, logDir, mihomoCoreDir, mihomoWorkDir } from '../utils/dirs'
import { triggerSysProxy } from '../resolve/sysproxy'
@@ -23,15 +23,7 @@ const buildContextMenu = async (): Promise