diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index f3923a5ba5..b05fb876a7 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -725,7 +725,7 @@ extern InputPluginList getInputPlugins(); extern void saveInputPluginSettings(const InputPluginList& plugins); bool setupEssentials(const QCommandLineParser& parser, bool runningMarkerExisted) { - qInstallMessageHandler(messageHandler); + const int listenPort = parser.isSet("listenPort") ? parser.value("listenPort").toInt() : INVALID_PORT; @@ -765,7 +765,7 @@ bool setupEssentials(const QCommandLineParser& parser, bool runningMarkerExisted } // Tell the plugin manager about our statically linked plugins - DependencyManager::set(); + DependencyManager::set(); DependencyManager::set(); auto pluginManager = PluginManager::getInstance(); @@ -1035,6 +1035,13 @@ Application::Application( LogHandler::getInstance().moveToThread(thread()); LogHandler::getInstance().setupRepeatedMessageFlusher(); + qInstallMessageHandler(messageHandler); + + DependencyManager::set(); +} + +void Application::initializePlugins() { + } void Application::initialize(const QCommandLineParser &parser) { diff --git a/interface/src/Application.h b/interface/src/Application.h index 69d167d27b..992b55a3b8 100644 --- a/interface/src/Application.h +++ b/interface/src/Application.h @@ -123,6 +123,9 @@ class Application : public QApplication, friend class OctreePacketProcessor; public: + + void initializePlugins(); + /** * @brief Initialize everything *