mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(ui): correct imports, guard checks, logging and settings handling
This commit is contained in:
1 parent
516a376dc0
commit
ccbb08cfb4
21 files changed
+240
-216
No files matched your search
@@ -252,16 +252,20 @@ export class SettingsComponent implements OnInit {
|
||||
onSubmit(): void {
|
||||
this.settingsStore.updateSettings(this.settingsForm.value).then(() => {
|
||||
this.applyChangedSettings();
|
||||
|
||||
|
||||
if (window.electron) {
|
||||
window.electron.updateSettings(this.settingsForm.value);
|
||||
|
||||
|
||||
// Set player paths if using external players
|
||||
if (this.settingsForm.value.mpvPlayerPath) {
|
||||
window.electron.setMpvPlayerPath(this.settingsForm.value.mpvPlayerPath);
|
||||
window.electron.setMpvPlayerPath(
|
||||
this.settingsForm.value.mpvPlayerPath
|
||||
);
|
||||
}
|
||||
if (this.settingsForm.value.vlcPlayerPath) {
|
||||
window.electron.setVlcPlayerPath(this.settingsForm.value.vlcPlayerPath);
|
||||
window.electron.setVlcPlayerPath(
|
||||
this.settingsForm.value.vlcPlayerPath
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user