From 6680a984abbc4964778f070cb33be83fac901f1d Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Wed, 4 Dec 2024 02:36:13 +0100 Subject: [PATCH] Disable alt mode in plugin mode --- Source/Canvas.cpp | 4 +++- Source/Dialogs/AboutPanel.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Canvas.cpp b/Source/Canvas.cpp index 471e51e9f..22588ea41 100644 --- a/Source/Canvas.cpp +++ b/Source/Canvas.cpp @@ -1320,7 +1320,9 @@ void Canvas::middleMouseChanged(bool isHeld) void Canvas::altKeyChanged(bool isHeld) { - SettingsFile::getInstance()->getValueTree().getChildWithName("Overlays").setProperty("alt_mode", isHeld, nullptr); + if(!isGraph) { + SettingsFile::getInstance()->getValueTree().getChildWithName("Overlays").setProperty("alt_mode", isHeld, nullptr); + } } void Canvas::mouseDown(MouseEvent const& e) diff --git a/Source/Dialogs/AboutPanel.h b/Source/Dialogs/AboutPanel.h index 85b090074..446daba05 100644 --- a/Source/Dialogs/AboutPanel.h +++ b/Source/Dialogs/AboutPanel.h @@ -170,14 +170,14 @@ class AboutPanel : public Component { license.setMultiLine(true); license.setText(licenseText); license.setFont(Font(15)); - license.setLineSpacing(1.1f); + license.setLineSpacing(1.0f); addAndMakeVisible(license); } } void resized() override { - license.setBounds(getLocalBounds().withTrimmedTop(32).reduced(16, 8)); + license.setBounds(getLocalBounds().withTrimmedTop(32).reduced(16, 4)); } void paint(Graphics& g) override