Close dialog when casting a video (#85)

* Close dialog when casting a video

* Refactor, and fix issue with keyboard dialog

* Changelog
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-06-25 03:49:54 -04:00
1 parent 4433514975
commit 3223fbd8f2
7 files changed
+24 -11

No files matched your search

+6
View File
@@ -116,6 +116,12 @@ end function
function OnWebServerCommand()
if m.serverTask.command.StartsWith("play:")
sender = m.videoContainer.sender ?? m.currentFocued
if m.videoContainer.fullscreen
dialog = m.top.getScene().dialog
if dialog <> invalid
dialog.close = true
end if
end if
PlayVideo(m.serverTask.command.Mid(5), { sender: sender })
end if
end function