1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Enabled conditional display of ID3/file info with checkbox on the device panel

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27296 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-07-05 19:12:52 +00:00
parent 71b561e3df
commit 68756cca43
2 changed files with 9 additions and 0 deletions

View file

@ -906,6 +906,14 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
else
child = 1;
}
else if(element->tag->name[0] == 'i' || element->tag->name[0] == 'I'
|| element->tag->name[0] == 'f' || element->tag->name[0] == 'F')
{
if(info.device()->data("id3available").toBool())
child = 0;
else
child = 1;
}
else
{
child = val.toInt();

View file

@ -40,6 +40,7 @@ rendersbs ; Render SBS If Available ; check ; true
rtl ; Right-To-Left Language ; check ; false
[ID3 Info]
id3available ; ID3 Info Available ; check ; true
ia ; Artist ; text ; Current Artist
ic ; Composer ; text ; Current Composer
iA ; Album Artist ; text ; Current Album Artist