Skip to content

Commit

Permalink
Removed announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Sep 6, 2024
1 parent d41d4d9 commit d43d807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 0 additions & 27 deletions playlet-lib/src/components/MainScene.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -19,7 +18,6 @@ function MainSceneContainerChanged()
InitEcpArgs()
m.scene.signalBeacon("AppLaunchComplete")
CopyLoadingMessagesToCache()
ShowAnnouncement()
end function

function StartWebServer()
Expand All @@ -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

0 comments on commit d43d807

Please sign in to comment.