added onRendererReady
This commit is contained in:
parent
e2a8b803e5
commit
451e25f071
3 changed files with 6 additions and 1 deletions
|
@ -64,6 +64,7 @@ export class Plugins {
|
||||||
app: electron.app,
|
app: electron.app,
|
||||||
store: utils.getStore(),
|
store: utils.getStore(),
|
||||||
utils: utils,
|
utils: utils,
|
||||||
|
win: utils.getWindow(),
|
||||||
dir: pluginPath
|
dir: pluginPath
|
||||||
}
|
}
|
||||||
plugins[plugin.name] = new plugin(pluginEnv);
|
plugins[plugin.name] = new plugin(pluginEnv);
|
||||||
|
|
|
@ -61,6 +61,10 @@ app.on('ready', () => {
|
||||||
* Renderer Event Handlers
|
* Renderer Event Handlers
|
||||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
||||||
|
|
||||||
|
ipcMain.handle("renderer-ready", (event) => {
|
||||||
|
CiderPlug.callPlugins("onRendererReady", event);
|
||||||
|
})
|
||||||
|
|
||||||
ipcMain.on('playbackStateDidChange', (_event, attributes) => {
|
ipcMain.on('playbackStateDidChange', (_event, attributes) => {
|
||||||
CiderPlug.callPlugins('onPlaybackStateDidChange', attributes);
|
CiderPlug.callPlugins('onPlaybackStateDidChange', attributes);
|
||||||
});
|
});
|
||||||
|
|
|
@ -821,7 +821,7 @@ const app = new Vue({
|
||||||
this.getBrowsePage();
|
this.getBrowsePage();
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}, 500)
|
}, 500)
|
||||||
|
ipcRenderer.invoke("renderer-ready", true)
|
||||||
},
|
},
|
||||||
setTheme(theme = "") {
|
setTheme(theme = "") {
|
||||||
console.log(theme)
|
console.log(theme)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue