Merge pull request #890 from th-ch/load-plugins-on-window-creation

Load plugins as soon as the window is created
This commit is contained in:
th-ch
2022-12-27 18:41:50 +01:00
committed by GitHub

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", (