Various updates to backend.

Implementation of MPRIS in TS.
LastFM now interacts with store object passed directly into class.
Experimental decorators enabled and utilised in MPRIS.
This commit is contained in:
Core 2022-01-26 05:13:46 +00:00
parent b4293cf065
commit 27becacbb7
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
10 changed files with 305 additions and 84 deletions

View file

@ -13,7 +13,7 @@ import PluginHandler from "./base/plugins";
const config = new ConfigStore();
const App = new AppEvents(config.store);
const Cider = new Win(electron.app, config.store)
const plug = new PluginHandler();
const plug = new PluginHandler(config.store);
let win: Electron.BrowserWindow;
@ -34,7 +34,7 @@ electron.app.on('ready', () => {
win = await Cider.createWindow()
App.bwCreated(win);
/// please dont change this for plugins to get proper and fully initialized Win objects
plug.callPlugins('onReady', Cider);
plug.callPlugins('onReady', win);
win.on("ready-to-show", () => {
win.show();
});