mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
refactor: remove no-longer-used ipc
This commit is contained in:
@@ -324,12 +324,6 @@ export function registerIpcMainHandlers(): void {
|
||||
ipcMain.handle('writeTheme', (_e, theme, css) => ipcErrorWrapper(writeTheme)(theme, css))
|
||||
ipcMain.handle('applyTheme', (_e, theme) => ipcErrorWrapper(applyTheme)(theme))
|
||||
ipcMain.handle('copyEnv', (_e, type) => ipcErrorWrapper(copyEnv)(type))
|
||||
ipcMain.handle('alert', (_e, msg) => {
|
||||
dialog.showErrorBox('Clash Party', msg)
|
||||
})
|
||||
ipcMain.handle('showDetailedError', (_e, title, message) => {
|
||||
dialog.showErrorBox(title, message)
|
||||
})
|
||||
ipcMain.handle('getSmartOverrideContent', async () => {
|
||||
const { getOverrideItem } = await import('../config')
|
||||
try {
|
||||
|
||||
@@ -108,10 +108,6 @@ export async function mihomoSmartFlushCache(configName?: string): Promise<void>
|
||||
return ipcErrorWrapper(await window.electron.ipcRenderer.invoke('mihomoSmartFlushCache', configName))
|
||||
}
|
||||
|
||||
export async function showDetailedError(title: string, message: string): Promise<void> {
|
||||
return ipcErrorWrapper(await window.electron.ipcRenderer.invoke('showDetailedError', title, message))
|
||||
}
|
||||
|
||||
export async function getSmartOverrideContent(): Promise<string | null> {
|
||||
return ipcErrorWrapper(await window.electron.ipcRenderer.invoke('getSmartOverrideContent'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user