Merge branch 'develop' of https://github.com/ciderapp/Cider into develop

This commit is contained in:
Maikiwi 2022-02-18 17:13:36 -08:00
commit 2fb35919f5
3 changed files with 6 additions and 1 deletions

View file

@ -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);

View file

@ -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);
}); });

View file

@ -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)