Focus current item on queue open
This commit is contained in:
1 parent
9e47d4d42e
commit
45da0880ba
2 files changed
+10
-1
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
<component name="PlayQueueView" extends="Group" includes="Focus">
|
<component name="PlayQueueView" extends="Group" includes="Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="content" type="node" onChange="OnContentSet" />
|
<field id="content" type="node" onChange="OnContentSet" />
|
||||||
|
<field id="jumpToItem" type="integer" alias="queueList.jumpToItem" />
|
||||||
<field id="playQueue" type="node" />
|
<field id="playQueue" type="node" />
|
||||||
<field id="appController" type="node" />
|
<field id="appController" type="node" />
|
||||||
<function name="Show" />
|
<function name="Show" />
|
||||||
|
|||||||
@@ -7,7 +7,15 @@ namespace PlayQueueViewUtils
|
|||||||
playQueueView.appController = appController
|
playQueueView.appController = appController
|
||||||
playQueueView.playQueue = playQueue
|
playQueueView.playQueue = playQueue
|
||||||
appController@.PushScreen(playQueueView)
|
appController@.PushScreen(playQueueView)
|
||||||
playQueueView.content = playQueue.content
|
|
||||||
|
content = playQueue.content
|
||||||
|
index = playQueue.index
|
||||||
|
|
||||||
|
playQueueView.content = content
|
||||||
|
if index > -1 and index < content.GetChildCount()
|
||||||
|
playQueueView.jumpToItem = index
|
||||||
|
end if
|
||||||
|
|
||||||
playQueueView@.Show(invalid)
|
playQueueView@.Show(invalid)
|
||||||
return playQueueView
|
return playQueueView
|
||||||
end function
|
end function
|
||||||
|
|||||||
Reference in new issue
Block a user