Browse Source

Use maker name as part of standalone window title

Signed-off-by: falkTX <falktx@falktx.com>
pull/452/head
falkTX 1 year ago
parent
commit
2ffcc51e11
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      distrho/src/DistrhoPluginJACK.cpp

+ 11
- 5
distrho/src/DistrhoPluginJACK.cpp View File

@@ -234,20 +234,26 @@ public:

std::fflush(stdout);

#if DISTRHO_PLUGIN_HAS_UI
#if DISTRHO_PLUGIN_HAS_UI
String title(fPlugin.getMaker());

if (title.isNotEmpty())
title += ": ";

if (const char* const name = jackbridge_get_client_name(fClient))
fUI.setWindowTitle(name);
title += name;
else
fUI.setWindowTitle(fPlugin.getName());
title += fPlugin.getName();

fUI.setWindowTitle(title);
fUI.exec(this);
#else
#else
while (! gCloseSignalReceived)
d_sleep(1);

// unused
(void)winId;
#endif
#endif
}

~PluginJack()


Loading…
Cancel
Save