From ce208602f25d443d4f721d75c9bd9c884ba9e9a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 14 Aug 2008 05:09:14 +0000 Subject: Defer menu creation until it is actually requested (speeds up startup time-to-patch-window considerably). Handle new plugins being presented after initialization in plugin menu and dialog. git-svn-id: http://svn.drobilla.net/lad/ingen@1372 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Store.cpp | 1 + src/libs/client/Store.hpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src/libs/client') diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index 1eea354a..53b99f8d 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -336,6 +336,7 @@ Store::add_plugin(SharedPtr pm) // FIXME: dupes? merge, like with objects? _plugins[pm->uri()] = pm; + signal_new_plugin(pm); //cerr << "Plugin: " << pm->uri() << ", # plugins: " << _plugins.size() << endl; } diff --git a/src/libs/client/Store.hpp b/src/libs/client/Store.hpp index 443a411f..70f11142 100644 --- a/src/libs/client/Store.hpp +++ b/src/libs/client/Store.hpp @@ -70,6 +70,7 @@ public: const Objects& objects() const { return _objects; } sigc::signal > signal_new_object; + sigc::signal > signal_new_plugin; private: -- cgit v1.2.1