Skip to content

Commit 6b27624

Browse files
committed
Fix Gem toggle showing wrong state
1 parent b2fdcb1 commit 6b27624

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Source/Dialogs/PathsSettingsPanel.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,8 @@ class LibraryLoadPanel final : public Component
685685
class EnableGemToggle : public Component
686686
{
687687
public:
688-
EnableGemToggle() : boolComponent("Enable GEM", enableGemValue, {"No", "Yes"})
688+
EnableGemToggle() : boolComponent("Enable GEM", SettingsFile::getInstance()->getPropertyAsValue("enable_gem"), {"No", "Yes"})
689689
{
690-
enableGemValue.referTo(SettingsFile::getInstance()->getPropertyAsValue("enable_gem"));
691690
addAndMakeVisible(boolComponent);
692691
}
693692

@@ -710,8 +709,7 @@ class EnableGemToggle : public Component
710709
{
711710
boolComponent.setBounds(getLocalBounds().withTrimmedTop(26).reduced(4));
712711
}
713-
714-
Value enableGemValue;
712+
715713
PropertiesPanel::BoolComponent boolComponent;
716714
};
717715

0 commit comments

Comments
 (0)