Skip to content
Permalink
Browse files

Update subtitle support (5)

  • Loading branch information...
3unjee committed May 11, 2019
1 parent 4a367ad commit 022f2c450fdfdbb1118408545be8727bc0caf967
Showing with 25 additions and 15 deletions.
  1. +25 −15 content/PageSubtitles.qml
@@ -55,14 +55,37 @@ Item
{
target: player

onTabChanged: pUpdateSearch()
onTabChanged:
{
if (pSearch)
{
pHideSearch();
}
else pSetText(playerTab.subtitle);
}
}

Connections
{
target: playerTab

onCurrentBookmarkChanged: pUpdateSearch()
onCurrentBookmarkChanged:
{
var subtitle = playerTab.subtitle;

if (subtitle)
{
if (pSearch)
{
pHideSearch();
}
else pSetText(subtitle);
}
else if (pSearch)
{
pApplyQuery();
}
}

onSubtitleChanged:
{
@@ -168,19 +191,6 @@ Item

//---------------------------------------------------------------------------------------------

function pUpdateSearch()
{
if (pEvents == false) return;

if (pSearch)
{
pHideSearch();
}
else pSetText(playerTab.subtitle);
}

//---------------------------------------------------------------------------------------------

function pGetText()
{
if (pEnable)

0 comments on commit 022f2c4

Please sign in to comment.
You can’t perform that action at this time.