Merge pull request #66 from bisby/bisby/issue-63-blank-check
Bisby/issue 63 blank check
This commit is contained in:
commit
c0278bd9aa
|
@ -47,9 +47,16 @@ sub itemContentChanged()
|
|||
setWatchedColor()
|
||||
end sub
|
||||
|
||||
sub setFieldText(field as string, value)
|
||||
sub setFieldText(field, value)
|
||||
node = m.top.findNode(field)
|
||||
if node = invalid then return
|
||||
if node = invalid or value = invalid then return
|
||||
|
||||
' Handle non strings... Which _shouldn't_ happen, but hey
|
||||
if type(value) = "roInt" or type(value) = "Integer" then
|
||||
value = str(value)
|
||||
else if type(value) <> "roString" and type(value) <> "String" then
|
||||
value = ""
|
||||
end if
|
||||
|
||||
node.text = value
|
||||
end sub
|
||||
|
|
|
@ -9,6 +9,7 @@ sub updateSize()
|
|||
itemText = m.top.findNode("itemText")
|
||||
maxSize = m.top.getParent().itemSize
|
||||
itemText.width = maxSize[0]
|
||||
itemText.height = maxSize[1]
|
||||
|
||||
itemText.translation = [0, (maxSize[1] / 2) - 15]
|
||||
end sub
|
||||
|
|
|
@ -50,9 +50,16 @@ sub itemContentChanged()
|
|||
setWatchedColor()
|
||||
end sub
|
||||
|
||||
sub setFieldText(field as string, value)
|
||||
sub setFieldText(field, value)
|
||||
node = m.top.findNode(field)
|
||||
if node = invalid then return
|
||||
if node = invalid or value = invalid then return
|
||||
|
||||
' Handle non strings... Which _shouldn't_ happen, but hey
|
||||
if type(value) = "roInt" or type(value) = "Integer" then
|
||||
value = str(value)
|
||||
else if type(value) <> "roString" and type(value) <> "String" then
|
||||
value = ""
|
||||
end if
|
||||
|
||||
node.text = value
|
||||
end sub
|
||||
|
|
|
@ -44,9 +44,16 @@ sub itemContentChanged()
|
|||
' m.top.findNode("TVSeasonSelect").TVSeasonData = m.top.itemContent.seasons
|
||||
end sub
|
||||
|
||||
sub setFieldText(field as string, value)
|
||||
sub setFieldText(field, value)
|
||||
node = m.top.findNode(field)
|
||||
if node = invalid then return
|
||||
if node = invalid or value = invalid then return
|
||||
|
||||
' Handle non strings... Which _shouldn't_ happen, but hey
|
||||
if type(value) = "roInt" or type(value) = "Integer" then
|
||||
value = str(value)
|
||||
else if type(value) <> "roString" and type(value) <> "String" then
|
||||
value = ""
|
||||
end if
|
||||
|
||||
node.text = value
|
||||
end sub
|
||||
|
|
Loading…
Reference in New Issue
Block a user