mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
fix(plugin): fix always show restart dialog
This commit is contained in:
@ -121,6 +121,10 @@ const initHook = (win: BrowserWindow) => {
|
|||||||
ipcMain.emit('plugin:unload', id);
|
ipcMain.emit('plugin:unload', id);
|
||||||
forceUnloadMainPlugin(id as keyof PluginBuilderList, win);
|
forceUnloadMainPlugin(id as keyof PluginBuilderList, win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pluginBuilders[id as keyof PluginBuilderList].restartNeeded) {
|
||||||
|
showNeedToRestartDialog(id as keyof PluginBuilderList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const mainPlugin = getAllLoadedMainPlugins()[id];
|
const mainPlugin = getAllLoadedMainPlugins()[id];
|
||||||
@ -130,10 +134,6 @@ const initHook = (win: BrowserWindow) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pluginBuilders[id as keyof PluginBuilderList].restartNeeded) {
|
|
||||||
showNeedToRestartDialog(id as keyof PluginBuilderList);
|
|
||||||
}
|
|
||||||
|
|
||||||
win.webContents.send('config-changed', id, config);
|
win.webContents.send('config-changed', id, config);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user