From 58b3405cdc591e8429ae6efafa4cc6a714a8cf55 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 7 Apr 2024 11:09:06 -0400 Subject: [PATCH] [skip ci] update todos --- playlet-lib/src/components/Services/Preferences/Preferences.bs | 2 +- playlet-web/src/lib/Screens/RemoteControlScreen.svelte | 3 --- tools/bs-plugins/oninit-plugin.ts | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/playlet-lib/src/components/Services/Preferences/Preferences.bs b/playlet-lib/src/components/Services/Preferences/Preferences.bs index 9e58c559..a837206a 100644 --- a/playlet-lib/src/components/Services/Preferences/Preferences.bs +++ b/playlet-lib/src/components/Services/Preferences/Preferences.bs @@ -114,7 +114,7 @@ function MigrateExistingPreferences(userPrefs as object) as boolean ' 'do stuff ' end if - ' TODO:PX handle case where saved preferences version is higher than current version (e.g. user downgraded) + ' TODO:P2 handle case where saved preferences version is higher than current version (e.g. user downgraded) return isDirty end function diff --git a/playlet-web/src/lib/Screens/RemoteControlScreen.svelte b/playlet-web/src/lib/Screens/RemoteControlScreen.svelte index 4ffab480..e733c17f 100644 --- a/playlet-web/src/lib/Screens/RemoteControlScreen.svelte +++ b/playlet-web/src/lib/Screens/RemoteControlScreen.svelte @@ -60,9 +60,6 @@ onMount(() => { screen.addEventListener("keydown", onKeyDown); screen.addEventListener("keyup", onKeyUp); - // TODO:P1 support navigator.mediaSession - // media buttons, such as play/pause, next, and previous track. - // metadata, like title, artist, album, artwork }); onDestroy(() => { diff --git a/tools/bs-plugins/oninit-plugin.ts b/tools/bs-plugins/oninit-plugin.ts index 22cdd7e9..56a567a9 100644 --- a/tools/bs-plugins/oninit-plugin.ts +++ b/tools/bs-plugins/oninit-plugin.ts @@ -41,9 +41,6 @@ export class OnInitPlugin implements CompilerPlugin { const initFunction = this.getInitCallableInScope(scope); if (!initFunction) { onInitCallables.forEach((onInitCallable) => { - // TODO:P2 we currently add diagnostics to the xml file, but we should add them to the brs file - // The reasons is, when we add to a generated file (like Component_bindings.brs), the errors - // Are stuck, and won't be fixed until the file is changed, which we can't do since it's not a real file. scope.xmlFile.addDiagnostics([{ file: scope.xmlFile, range: onInitCallable.annotation!.range,