From 60e16c4b3bf6ba4065ceac1ff175f2b01081f2fe Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Sat, 25 Jan 2025 01:31:00 +0100 Subject: [PATCH] Deken: only show warning banner inside DAW --- Source/Dialogs/Deken.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Source/Dialogs/Deken.h b/Source/Dialogs/Deken.h index 024649c6a..13b03c766 100644 --- a/Source/Dialogs/Deken.h +++ b/Source/Dialogs/Deken.h @@ -741,10 +741,12 @@ class Deken final : public Component addAndMakeVisible(listBox); - headerWarning = std::make_unique("Externals available in standalone only", - "Click to see more info online...", - [] { URL("https://github.com/plugdata-team/plugdata/issues/34").launchInDefaultBrowser(); }); - addAndMakeVisible(headerWarning.get()); + if(!ProjectInfo::isStandalone) { + headerWarning = std::make_unique("Externals available in standalone only", + "Click to see more info online...", + [] { URL("https://github.com/plugdata-team/plugdata/issues/34").launchInDefaultBrowser(); }); + addAndMakeVisible(headerWarning.get()); + } } Viewport* getViewport() @@ -763,8 +765,10 @@ class Deken final : public Component auto bounds = getLocalBounds(); bounds.removeFromTop(10); - auto const headerBounds = bounds.removeFromTop(headerHeight); - headerWarning->setBounds(headerBounds); + if(!ProjectInfo::isStandalone) { + auto const headerBounds = bounds.removeFromTop(headerHeight); + headerWarning->setBounds(headerBounds); + } listBox.setBounds(bounds.reduced(20, 18).withHeight(listHeight)); // Update the overall size