mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
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:
2
index.js
2
index.js
@ -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", (
|
||||
|
||||
Reference in New Issue
Block a user