mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -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
@@ -13,7 +13,6 @@ import {
|
||||
Language,
|
||||
OPEN_FILE,
|
||||
Settings,
|
||||
SETTINGS_UPDATE,
|
||||
STORE_KEY,
|
||||
Theme,
|
||||
VIEW_ADD_PLAYLIST,
|
||||
@@ -120,13 +119,12 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
.getValueFromLocalStorage(STORE_KEY.Settings)
|
||||
.subscribe((settings: Settings) => {
|
||||
if (settings && Object.keys(settings).length > 0) {
|
||||
// Send settings to Electron main process
|
||||
if (window.electron) {
|
||||
window.electron.updateSettings(settings);
|
||||
}
|
||||
|
||||
// No need to send settings to Electron on init
|
||||
// Settings are stored in IndexedDB and loaded by the settings store
|
||||
// Only specific Electron settings (MPV/VLC paths) are sent when changed in settings component
|
||||
|
||||
this.translate.use(settings.language ?? this.DEFAULT_LANG);
|
||||
|
||||
|
||||
// Fetch EPG if URLs are configured
|
||||
if (
|
||||
window.electron &&
|
||||
|
||||
Reference in new issue
Block a user