Fit more error info in the dialog when videos fail
This commit is contained in:
1 parent
e4870a752b
commit
151e108183
6 files changed
+20
-7
No files matched your search
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<component name="Dialog" extends="StandardMessageDialog" >
|
||||
</component>
|
||||
@@ -3,13 +3,16 @@ function ShowDialog(message as dynamic, title as string) as object
|
||||
end function
|
||||
|
||||
function ShowDialogButtons(message as dynamic, title as string, buttons as object) as object
|
||||
dialog = CreateObject("roSGNode", "Dialog")
|
||||
dialog = CreateObject("roSGNode", "SimpleDialog")
|
||||
if GetInterface(message, "ifArray") = invalid
|
||||
message = message.Tokenize(UnixNL()).ToArray()
|
||||
end if
|
||||
dialog.message = message
|
||||
dialog.title = title
|
||||
dialog.buttons = buttons
|
||||
deviceInfo = CreateObject("roDeviceInfo")
|
||||
displaySize = deviceInfo.GetDisplaySize()
|
||||
dialog.width = displaySize.w - 100
|
||||
m.top.getScene().dialog = dialog
|
||||
return dialog
|
||||
end function
|
||||
File renamed without changes.
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<component name="SimpleDialog" extends="StandardMessageDialog">
|
||||
</component>
|
||||
Reference in new issue
Block a user