fix(settings): mpv player is only available in electron app

This commit is contained in:
4gray committed 2023-05-30 17:16:54 +02:00
1 parent 277b627f7e
commit 18b9b7c746
1 file changed
+11 -7
+11 -7
View File
@@ -37,6 +37,9 @@ export class SettingsComponent implements OnInit {
/** List with available languages as enum */
languageEnum = Language;
/** Flag that indicates whether the app runs in electron environment */
isElectron = this.electronService.isElectron;
/** Player options */
players = [
{
@@ -47,10 +50,14 @@ export class SettingsComponent implements OnInit {
id: VideoPlayer.VideoJs,
label: 'VideoJs Player',
},
{
id: VideoPlayer.MPV,
label: 'MPV Player',
},
...(this.isElectron
? [
{
id: VideoPlayer.MPV,
label: 'MPV Player',
},
]
: []),
];
/** Current version of the app */
@@ -62,9 +69,6 @@ export class SettingsComponent implements OnInit {
/** EPG availability flag */
epgAvailable$ = this.store.select(selectIsEpgAvailable);
/** Flag that indicates whether the app runs in electron environment */
isElectron = this.electronService.isElectron;
/** All available visual themes */
themeEnum = Theme;