@@ -341,15 +341,15 @@ class GeneralSettingsPage : public SettingsPage,
341341 clockSourceBox.addItem (" Internal" , ClockSourceInternal);
342342 clockSourceBox.addItem (" MIDI Clock" , ClockSourceMidiClock);
343343 clockSource.referTo (clockSourceBox.getSelectedIdAsValue ());
344-
344+ # if ELEMENT_UPDATER
345345 addAndMakeVisible (checkForUpdatesLabel);
346346 checkForUpdatesLabel.setText (" Check for updates on startup" , dontSendNotification);
347347 checkForUpdatesLabel.setFont (Font (FontOptions (12.0 , Font::bold)));
348348 addAndMakeVisible (checkForUpdates);
349349 checkForUpdates.setClickingTogglesState (true );
350350 checkForUpdates.setToggleState (settings.checkForUpdates (), dontSendNotification);
351351 checkForUpdates.getToggleStateValue ().addListener (this );
352-
352+ # endif
353353 addAndMakeVisible (scanForPlugsLabel);
354354 scanForPlugsLabel.setText (" Scan plugins on startup" , dontSendNotification);
355355 scanForPlugsLabel.setFont (Font (FontOptions (12.0 , Font::bold)));
@@ -516,13 +516,13 @@ class GeneralSettingsPage : public SettingsPage,
516516 auto r2 = r.removeFromTop (settingHeight);
517517 clockSourceLabel.setBounds (r2.removeFromLeft (getWidth () / 2 ));
518518 clockSourceBox.setBounds (r2.withSizeKeepingCentre (r2.getWidth (), settingHeight));
519-
519+ # if ELEMENT_UPDATER
520520 r.removeFromTop (spacingBetweenSections);
521521 r2 = r.removeFromTop (settingHeight);
522522 checkForUpdatesLabel.setBounds (r2.removeFromLeft (getWidth () / 2 ));
523523 checkForUpdates.setBounds (r2.removeFromLeft (toggleWidth)
524524 .withSizeKeepingCentre (toggleWidth, toggleHeight));
525-
525+ # endif
526526 r.removeFromTop (spacingBetweenSections);
527527 r2 = r.removeFromTop (settingHeight);
528528 scanForPlugsLabel.setBounds (r2.removeFromLeft (getWidth () / 2 ));
@@ -561,15 +561,17 @@ class GeneralSettingsPage : public SettingsPage,
561561
562562 void valueChanged (Value& value) override
563563 {
564- if (value.refersToSameSourceAs (checkForUpdates .getToggleStateValue ()))
564+ if (value.refersToSameSourceAs (legacyCtl .getToggleStateValue ()))
565565 {
566- settings.setCheckForUpdates (checkForUpdates.getToggleState ());
567- jassert (settings.checkForUpdates () == checkForUpdates.getToggleState ());
566+ settings.set (" legacyControllers" , legacyCtl.getToggleState ());
568567 }
569- else if (value.refersToSameSourceAs (legacyCtl.getToggleStateValue ()))
568+ #if ELEMENT_UPDATER
569+ else if (value.refersToSameSourceAs (checkForUpdates.getToggleStateValue ()))
570570 {
571- settings.set (" legacyControllers" , legacyCtl.getToggleState ());
571+ settings.setCheckForUpdates (checkForUpdates.getToggleState ());
572+ jassert (settings.checkForUpdates () == checkForUpdates.getToggleState ());
572573 }
574+ #endif
573575 // clock source
574576 else if (value.refersToSameSourceAs (clockSource))
575577 {
0 commit comments