Skip to content

Commit

Permalink
Fix display panel sync input config (#1718)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koseng authored Feb 26, 2024
1 parent 8b35ad5 commit 3832818
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions UI/Panels/OutputWizard/DisplayPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,8 @@ internal void syncFromConfig(OutputConfigItem cfg)
}
else
{
var analogInputConfig = new AnalogInputConfig();
analogInputConfig.onChange = config.AnalogInputConfig?.onChange;
analogPanel1.syncFromConfig(analogInputConfig);

var buttonInputConfig = new ButtonInputConfig();
buttonInputConfig.onPress = config.ButtonInputConfig?.onPress;
buttonInputConfig.onRelease = config.ButtonInputConfig?.onRelease;
buttonPanel1.syncFromConfig(buttonInputConfig);
analogPanel1.syncFromConfig(config.AnalogInputConfig);
buttonPanel1.syncFromConfig(config.ButtonInputConfig);

InputTypeButtonRadioButton.Checked = config.AnalogInputConfig?.onChange == null;
InputTypeAnalogRadioButton.Checked = config.AnalogInputConfig?.onChange != null;
Expand Down

0 comments on commit 3832818

Please sign in to comment.