add signal for Plugin Status Changes (Hidden/Favorite)
authorRobin Gareus <robin@gareus.org>
Tue, 22 Dec 2015 03:25:37 +0000 (04:25 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 22 Dec 2015 03:25:37 +0000 (04:25 +0100)
libs/ardour/ardour/plugin_manager.h
libs/ardour/plugin_manager.cc

index 2c081ddfa3b920519b4ce624a8a3f1909572b8d8..e25a268b2e1fa5a7c9b3e983f8c6b448be597616 100644 (file)
@@ -78,6 +78,8 @@ class LIBARDOUR_API PluginManager : public boost::noncopyable {
 
        /** plugins were added to or removed from one of the PluginInfoLists */
        PBD::Signal0<void> PluginListChanged;
+       /** Plugin Hidden/Favorite status changed */
+       PBD::Signal0<void> PluginStatusesChanged;
 
   private:
        struct PluginStatus {
index 2e1b21e4efdd7ae9e949cbea9d71645d01f614de..53d73c45c6448d7094a1a3c40ab640a014093b28 100644 (file)
@@ -1123,6 +1123,7 @@ PluginManager::save_statuses ()
                ofs << endl;
        }
        g_file_set_contents (path.c_str(), ofs.str().c_str(), -1, NULL);
+       PluginStatusesChanged (); /* EMIT SIGNAL */
 }
 
 void