DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 2ffcc51e1153d6f79987f9713fafbebf4fc8aa9a
parent b1e77c32ba58ebbe9d9c80bb750fc20ef98b99fd
Author: falkTX <falktx@falktx.com>
Date:   Wed, 28 Feb 2024 11:09:24 +0100

Use maker name as part of standalone window title

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoPluginJACK.cpp | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/distrho/src/DistrhoPluginJACK.cpp b/distrho/src/DistrhoPluginJACK.cpp @@ -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()