Skip to content

Commit

Permalink
Deken: only show warning banner inside DAW
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 25, 2025
1 parent f9403be commit 60e16c4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Source/Dialogs/Deken.h
Original file line number Diff line number Diff line change
Expand Up @@ -741,10 +741,12 @@ class Deken final : public Component

addAndMakeVisible(listBox);

headerWarning = std::make_unique<HeaderWarning>("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<HeaderWarning>("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()
Expand All @@ -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
Expand Down

0 comments on commit 60e16c4

Please sign in to comment.