From 777db66bdab8b6856a2572b5abbdd4b524a04afa Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 4 Nov 2023 11:12:35 -0400 Subject: [PATCH] Fix crash related to fetching subscriptions --- CHANGELOG.md | 1 + playlet-app/src/source/Dialog.bs | 3 ++ .../ContentNode/PlaylistContentNode.xml | 2 ++ .../Services/Invidious/InvidiousService.bs | 30 +++++++++++++------ 4 files changed, 27 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc4bab3c..46340b50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - A bug where casting from web included timestamp even if the "Start at" check box is unchecked - A leak where channel screens would reload data even when closed +- A crash when fetching subscriptions ## [0.14.0] - 2023-10-25 diff --git a/playlet-app/src/source/Dialog.bs b/playlet-app/src/source/Dialog.bs index 2137de0b..c721300b 100644 --- a/playlet-app/src/source/Dialog.bs +++ b/playlet-app/src/source/Dialog.bs @@ -1,4 +1,5 @@ function ShowErrorDialog(message as object, bulletText as object, bottomMessage as object) + ' TODO:P2 a null check on StandardMessageDialog, only available on 10.0 and later dialog = CreateObject("roSGNode", "StandardMessageDialog") dialog.message = message dialog.bulletText = bulletText @@ -19,5 +20,7 @@ function OnButtonSelected() end function function OnDialogClosed() + ' TODO:P1 throw an exception to cause a crash report to be generated + ' Should include which playlet lib failed to load m.top.getScene().exitChannel = true end function diff --git a/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml b/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml index 491c4cac..5de485c1 100644 --- a/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml +++ b/playlet-lib/src/components/ContentNode/PlaylistContentNode.xml @@ -5,6 +5,8 @@