]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_vars.cpp
* all: don't rebuild the whole playtree when an item is updated
[vlc] / modules / gui / skins2 / commands / cmd_vars.cpp
index f859a1a59423893a53f2efc8c67b5f476b39642f..9cd849a71c9bbb7abcf395f8e30005df25d59e67 100644 (file)
@@ -35,7 +35,7 @@ void CmdNotifyPlaylist::execute()
     rVar.onChange();
 }
 
-void CmdNotifyPlaytree::execute()
+void CmdPlaytreeChanged::execute()
 {
     // Notify  the playtree variable
     Playtree &rVar = VlcProc::instance( getIntf() )->getPlaytreeVar();
@@ -43,6 +43,14 @@ void CmdNotifyPlaytree::execute()
 }
 
 
+void CmdPlaytreeUpdate::execute()
+{
+    // Notify  the playtree variable
+    Playtree &rVar = VlcProc::instance( getIntf() )->getPlaytreeVar();
+    rVar.onUpdate( m_id );
+}
+
+
 void CmdSetText::execute()
 {
     // Change the text variable