Add error dialog
This commit is contained in:
1 parent
52fd7c87aa
commit
e0cc6970ab
5 files changed
+21
-1
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import "pkg:/source/services/Invidious.bs"
|
||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||
|
||||
function ShowVideoScreen(videoId as string, sender as object)
|
||||
m.videoPlayer = CreateObject("roSGNode", "VideoPlayer")
|
||||
@@ -111,7 +112,7 @@ function StartVideoDetailsTask(videoId as string)
|
||||
m.videoPlayer.content = contentNode
|
||||
m.videoPlayer.control = "play"
|
||||
else
|
||||
print "FAILED TO LOAD VIDEO " + videoId
|
||||
ErrorMessage(`Failed to load video ${videoId}`, "Video load fail")
|
||||
CloseVideoPlayer()
|
||||
end if
|
||||
end function)
|
||||
|
||||
Reference in new issue
Block a user