fix: synchronization issue with gist after mihomo core 1.19.8 update (#780)

Co-authored-by: 2045gemini <2045gemini@gmail.com>

感谢!

(cherry picked from commit f168adb68f917e0214064498efcac347c448672e)
This commit is contained in:
Xia Wanxu 2025-06-11 21:48:37 +08:00 committed by ezequielnick
parent 6744e14c66
commit 1a5c001dbd

View File

@ -158,7 +158,7 @@ export async function startCore(detached = false): Promise<Promise<void>[]> {
resolve([ resolve([
new Promise((resolve) => { new Promise((resolve) => {
child.stdout?.on('data', async (data) => { child.stdout?.on('data', async (data) => {
if (data.toString().includes('Start initial Compatible provider default')) { if (data.toString().toLowerCase().includes('start initial compatible provider default')) {
try { try {
mainWindow?.webContents.send('groupsUpdated') mainWindow?.webContents.send('groupsUpdated')
mainWindow?.webContents.send('rulesUpdated') mainWindow?.webContents.send('rulesUpdated')