Browse Source

Small tweaks for OSC ports not available messages

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 6 years ago
parent
commit
86c4732517
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 5 additions and 2 deletions
  1. +2
    -2
      source/backend/CarlaStandalone.cpp
  2. +3
    -0
      source/native-plugins/resources/carla-plugin

+ 2
- 2
source/backend/CarlaStandalone.cpp View File

@@ -2080,7 +2080,7 @@ const char* carla_get_host_osc_url_tcp()
if (path != nullptr && path[0] != '\0') if (path != nullptr && path[0] != '\0')
return path; return path;


static const char* const notAvailable = "OSC TCP port not available";
static const char* const notAvailable = "(OSC TCP port not available)";
return notAvailable; return notAvailable;
#else #else
return gNullCharPtr; return gNullCharPtr;
@@ -2104,7 +2104,7 @@ const char* carla_get_host_osc_url_udp()
if (path != nullptr && path[0] != '\0') if (path != nullptr && path[0] != '\0')
return path; return path;


static const char* const notAvailable = "OSC UDP port not available";
static const char* const notAvailable = "(OSC UDP port not available)";
return notAvailable; return notAvailable;
#else #else
return gNullCharPtr; return gNullCharPtr;


+ 3
- 0
source/native-plugins/resources/carla-plugin View File

@@ -74,6 +74,9 @@ class PluginHost(CarlaHostQtPlugin):
def set_engine_about_to_close(self): def set_engine_about_to_close(self):
return True return True


def get_host_osc_url_tcp(self):
return self.tr("(OSC TCP port not provided in Plugin version)")

# ------------------------------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------------------------------
# Main Window # Main Window




Loading…
Cancel
Save