From 3f772150ff9073f04504c2172fe9eb12c75bfc22 Mon Sep 17 00:00:00 2001 From: David Kekesi Date: Thu, 24 Oct 2024 16:28:57 +0200 Subject: [PATCH] no need to start project subscriber after installation --- SpeckleConnector/Connector/Interface/ConnectorPalette.cpp | 1 - SpeckleLib/Speckle/Event/Subscriber/ProjectSubscriber.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SpeckleConnector/Connector/Interface/ConnectorPalette.cpp b/SpeckleConnector/Connector/Interface/ConnectorPalette.cpp index 191d10f..72213a0 100644 --- a/SpeckleConnector/Connector/Interface/ConnectorPalette.cpp +++ b/SpeckleConnector/Connector/Interface/ConnectorPalette.cpp @@ -170,7 +170,6 @@ BrowserPalette::BrowserPalette() : if (auto ref = install(); ref) { if (auto baseBridgeRef = std::dynamic_pointer_cast(ref); baseBridgeRef) { connector::connector()->addWeak(baseBridgeRef); - baseBridgeRef->start(); } } diff --git a/SpeckleLib/Speckle/Event/Subscriber/ProjectSubscriber.h b/SpeckleLib/Speckle/Event/Subscriber/ProjectSubscriber.h index 37d128a..0e8c164 100644 --- a/SpeckleLib/Speckle/Event/Subscriber/ProjectSubscriber.h +++ b/SpeckleLib/Speckle/Event/Subscriber/ProjectSubscriber.h @@ -46,13 +46,13 @@ namespace speckle::event { @return True if the event should be closed */ bool receive(const active::event::Event& event) override; + + protected: /*! Start the participant operation @return True if the participant is able to continue */ bool start() override; - - protected: /*! Handle a project event @param event The project event