mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
refactor: some improvements in app menu
Improved the class structure of menu and added "Settings" as new menu item
This commit is contained in:
3 files changed
+117
-67
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user