]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_vars.cpp
Improvements to playtree
[vlc] / modules / gui / skins2 / commands / cmd_vars.cpp
index a3aa46cf42ab34356627c1bca4727cdb2e328e74..ba3154643a3846d8b06e68c3def496f06d56c0c2 100644 (file)
@@ -48,7 +48,7 @@ void CmdPlaytreeUpdate::execute()
 {
     // Notify  the playtree variable
     Playtree &rVar = VlcProc::instance( getIntf() )->getPlaytreeVar();
-    rVar.onUpdate( m_id );
+    rVar.onUpdateItem( m_id );
 }
 
 bool CmdPlaytreeUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const
@@ -64,6 +64,13 @@ bool CmdPlaytreeUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const
 }
 
 
+void CmdPlaytreeAppend::execute()
+{
+    // Notify  the playtree variable
+    Playtree &rVar = VlcProc::instance( getIntf() )->getPlaytreeVar();
+    rVar.onAppend( m_pAdd );
+}
+
 void CmdSetText::execute()
 {
     // Change the text variable