Skip to content

Commit

Permalink
Disable alt mode in plugin mode
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Dec 4, 2024
1 parent ff966cc commit 6680a98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Source/Canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Source/Dialogs/AboutPanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6680a98

Please sign in to comment.