From d43d807f11dcf9dbb585547efe99ba3fc43ff37f Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Fri, 6 Sep 2024 12:15:03 -0400 Subject: [PATCH] Removed announcement --- CHANGELOG.md | 4 ++++ playlet-lib/src/components/MainScene.bs | 27 ------------------------- 2 files changed, 4 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a2f9be8..ad6883ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - A bug where channel view infinitely tries to load a `Topic` channel +### Changed + +- Removed announcement + ## [0.25.4] - 2024-08-24 ### Added diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index aa50ab25..c49731db 100644 --- a/playlet-lib/src/components/MainScene.bs +++ b/playlet-lib/src/components/MainScene.bs @@ -2,7 +2,6 @@ import "pkg:/components/EcpArgs.bs" import "pkg:/components/parts/AutoBind/AutoBind.part.bs" import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/source/utils/LoadingScreen.bs" -import "pkg:/source/utils/Locale.bs" function Init() m.scene = m.top.getScene() @@ -19,7 +18,6 @@ function MainSceneContainerChanged() InitEcpArgs() m.scene.signalBeacon("AppLaunchComplete") CopyLoadingMessagesToCache() - ShowAnnouncement() end function function StartWebServer() @@ -32,28 +30,3 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer@.StartServer() end function - -function ShowAnnouncement() - title = "Announcement" - - message = [ - "Hello again!", - "Invidious servers are actively getting blocked by YouTube.", - `If you see the error message "This helps protect our community. Learn more" when playing a video, try changing the Invidious instance in the settings.`, - "This is a known issue and the Invidious dev team is working to fix it." - "See more information at https://github.com/iv-org/invidious/issues/4734" - "We apologize for the inconvenience." - ] - - buttons = [Tr(Locale.Buttons.OK)] - - dialog = CreateObject("roSGNode", "SimpleDialog") - dialog.title = title - dialog.message = message - dialog.buttons = buttons - deviceInfo = CreateObject("roDeviceInfo") - displaySize = deviceInfo.GetDisplaySize() - dialog.width = displaySize.w - 180 - - m.top.getScene().dialog = dialog -end function