Browse Source

NSM/jack-app: Catch "/nsm/server/stop" and use it to hide GUI

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
cbf919917f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      source/backend/plugin/CarlaPluginJack.cpp

+ 13
- 0
source/backend/plugin/CarlaPluginJack.cpp View File

@@ -280,6 +280,19 @@ protected:
lo_send_from(fOscClientAddress, fOscServer, LO_TT_IMMEDIATE, "/nsm/client/save", "");
}

else if (std::strcmp(path, "/nsm/server/stop") == 0)
{
CARLA_SAFE_ASSERT_RETURN(std::strcmp(types, "s") == 0, 0);

lo_send_from(fOscClientAddress, fOscServer, LO_TT_IMMEDIATE, "/nsm/client/hide_optional_gui", "");

kEngine->callback(true, true,
ENGINE_CALLBACK_UI_STATE_CHANGED,
kPlugin->getId(),
0,
0, 0, 0.0f, nullptr);
}

return 0;
}
#endif


Loading…
Cancel
Save