Move code related to push-to-remote into a central file

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-12-29 12:16:43 +00:00
parent cebb66f290
commit b71acc9f22
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
15 changed files with 278 additions and 211 deletions

View file

@ -274,14 +274,15 @@ public:
}
#ifdef CARDINAL_INIT_OSC_THREAD
fInitializer->oscPlugin = this;
fInitializer->remotePluginInstance = this;
#endif
}
~CardinalPlugin() override
{
#ifdef CARDINAL_INIT_OSC_THREAD
fInitializer->oscPlugin = nullptr;
if (fInitializer->remotePluginInstance == this)
fInitializer->remotePluginInstance = nullptr;
#endif
{
@ -844,9 +845,6 @@ protected:
if (std::strcmp(key, "screenshot") == 0)
{
fState.screenshot = value;
#if defined(HAVE_LIBLO) && !defined(HEADLESS)
patchUtils::sendScreenshotToRemote(value);
#endif
return;
}