refactor: some improvements in app menu

Improved the class structure of menu
and added "Settings" as new menu item
This commit is contained in:
4gray committed 2021-02-27 13:37:43 +01:00
1 parent 83ed4cf442
commit e29f09d18c
3 files changed
+117 -67

No files matched your search

+9
View File
@@ -53,6 +53,14 @@ export class AppComponent {
});
});
this.electronService.ipcRenderer.on('settings-view', () => {
this.ngZone.run(() => {
this.router.navigateByUrl('/settings', {
skipLocationChange: true,
});
});
});
this.electronService.ipcRenderer.on(EPG_FETCH_DONE, () => {
this.ngZone.run(() => {
this.channelStore.setEpgAvailableFlag(true);
@@ -120,5 +128,6 @@ export class AppComponent {
this.electronService.ipcRenderer.removeAllListeners(
'add-playlist-view'
);
this.electronService.ipcRenderer.removeAllListeners('settings-view');
}
}