diff --git a/CHANGELOG.md b/CHANGELOG.md index 4181d003..fc652b40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing worth mentioning yet +### Changed + +- Removed announcement - most public instances are not updated ## [0.23.2] - 2024-04-27 diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index eb32bd10..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,37 +30,3 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer@.StartServer() end function - -function ShowAnnouncement() - title = "Announcement" - - message = [ - "Invidious was experiencing an outage, and a fix has been deployed.", - "If you are experiencing issues playing videos:", - ] - - bulletText = [ - "For custom Invidious instances, please update to the latest version.", - "For public Invidious instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.04.27 or newer." - ] - - bottomMessage = [ - "If you don't know what instance you're using, follow the instructions from step 2." - "We apologize for the inconvenience." - ] - - buttons = [Tr(Locale.Buttons.OK)] - - dialog = CreateObject("roSGNode", "SimpleDialog") - dialog.title = title - dialog.message = message - dialog.bulletText = bulletText - dialog.bulletType = "numbered" - dialog.bottomMessage = bottomMessage - dialog.buttons = buttons - deviceInfo = CreateObject("roDeviceInfo") - displaySize = deviceInfo.GetDisplaySize() - dialog.width = displaySize.w - 180 - - m.top.getScene().dialog = dialog -end function diff --git a/playlet-lib/src/components/MainScene.transpiled.brs b/playlet-lib/src/components/MainScene.transpiled.brs index 94885cba..3cf9c0f9 100644 --- a/playlet-lib/src/components/MainScene.transpiled.brs +++ b/playlet-lib/src/components/MainScene.transpiled.brs @@ -2,7 +2,6 @@ '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() InitializeBindings() ' auto-generated! @@ -20,7 +19,6 @@ function MainSceneContainerChanged() InitEcpArgs() m.scene.signalBeacon("AppLaunchComplete") CopyLoadingMessagesToCache() - ShowAnnouncement() end function function StartWebServer() @@ -31,34 +29,4 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer.callfunc("StartServer", invalid) end function - -function ShowAnnouncement() - title = "Announcement" - message = [ - "Invidious was experiencing an outage, and a fix has been deployed." - "If you are experiencing issues playing videos:" - ] - bulletText = [ - "For custom Invidious instances, please update to the latest version." - "For public Invidious instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.04.27 or newer." - ] - bottomMessage = [ - "If you don't know what instance you're using, follow the instructions from step 2." - "We apologize for the inconvenience." - ] - buttons = [ - Tr("OK") - ] - dialog = CreateObject("roSGNode", "SimpleDialog") - dialog.title = title - dialog.message = message - dialog.bulletText = bulletText - dialog.bulletType = "numbered" - dialog.bottomMessage = bottomMessage - dialog.buttons = buttons - deviceInfo = CreateObject("roDeviceInfo") - displaySize = deviceInfo.GetDisplaySize() - dialog.width = displaySize.w - 180 - m.top.getScene().dialog = dialog -end function '//# sourceMappingURL=./MainScene.brs.map \ No newline at end of file