Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed Jan 9, 2025
1 parent 6793a36 commit bdd553b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions UI/Panels/OutputConfigPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -649,16 +649,17 @@ public void RestoreValuesInGridView()
} else if(cfgItem.DisplayType=="InputAction")
{
row["OutputType"] = cfgItem.DisplayType;
if (cfgItem.ButtonInputConfig!=null)
if (cfgItem.ButtonInputConfig != null)
{
if (cfgItem.ButtonInputConfig.onRelease!=null)
row["OutputName"] = cfgItem.ButtonInputConfig.onRelease?.GetType().ToString().Replace("MobiFlight.InputConfig.", "");
if (cfgItem.ButtonInputConfig.onRelease != null)
row["OutputName"] = cfgItem.ButtonInputConfig.onRelease.GetType().ToString().Replace("MobiFlight.InputConfig.", "");
if (cfgItem.ButtonInputConfig.onPress != null)
row["OutputName"] = cfgItem.ButtonInputConfig.onPress?.GetType().ToString().Replace("MobiFlight.InputConfig.", "");
row["OutputName"] = cfgItem.ButtonInputConfig.onPress.GetType().ToString().Replace("MobiFlight.InputConfig.", "");
}
if (cfgItem.AnalogInputConfig != null)
{
row["OutputName"] = cfgItem.AnalogInputConfig.onChange?.GetType().ToString().Replace("MobiFlight.InputConfig.", "");
if (cfgItem.AnalogInputConfig.onChange != null)
row["OutputName"] = cfgItem.AnalogInputConfig.onChange.GetType().ToString().Replace("MobiFlight.InputConfig.", "");
}
}
}
Expand Down

0 comments on commit bdd553b

Please sign in to comment.