Load plugins as soon as the window is created

This commit is contained in:
TC
2022-11-20 20:30:35 +01:00
parent 77173c1347
commit c2fbc89b91

View File

@ -152,6 +152,7 @@ function createMainWindow() {
: "default",
autoHideMenuBar: config.get("options.hideMenu"),
});
loadPlugins(win);
if (windowPosition) {
const { x, y } = windowPosition;
@ -284,7 +285,6 @@ app.once("browser-window-created", (event, win) => {
}
setupSongInfo(win);
loadPlugins(win);
setupAppControls();
win.webContents.on("did-fail-load", (