From d31f044d606db2d598dda2748c6948e975855328 Mon Sep 17 00:00:00 2001 From: yazninja Date: Fri, 22 Apr 2022 15:55:40 +0800 Subject: [PATCH] Revert "js++ oops" This reverts commit d8aca925f48fa6c2d57fce93e4c80cbd386f74f7. --- src/main/plugins/sendSongToTitlebar.ts | 37 -------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/main/plugins/sendSongToTitlebar.ts diff --git a/src/main/plugins/sendSongToTitlebar.ts b/src/main/plugins/sendSongToTitlebar.ts deleted file mode 100644 index c8e3a62c..00000000 --- a/src/main/plugins/sendSongToTitlebar.ts +++ /dev/null @@ -1,37 +0,0 @@ -export default class sendSongToTitlebar { - /** - * Base Plugin Details (Eventually implemented into a GUI in settings) - */ - public name: string = 'sendSongToTitlebar'; - public description: string = 'Sets the app\'s titlebar to the Song title'; - public version: string = '0.0.1'; - public author: string = 'Cider Collective (credit to 8times9 via #147)'; - /** - * Runs on plugin load (Currently run on application start) - */ - private _win: any; - private _app: any; - constructor() {} - /** - * Runs on app ready - */ - onReady(win: any): void { - this._win = win; - } - /** - * Runs on app stop - */ - onBeforeQuit(): void {} - /** - * Runs on playback State Change - * @param attributes Music Attributes (attributes.status = current state) - */ - onPlaybackStateDidChange(attributes: any): void { - this._win.setTitle(`${(attributes != null && attributes.name != null && attributes.name.length > 0) ? (attributes.name + " - ") : ''}Cider`) - } - /** - * Runs on song change - * @param attributes Music Attributes - */ - onNowPlayingItemDidChange(attributes: object): void {} -} \ No newline at end of file