SHA256
Adjust EnumDropdownBinder Condition
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
namespace ADOFAIRenderer.API;
|
||||||
|
|
||||||
|
public class Core
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -20,7 +20,7 @@ namespace ADOFAIRenderer.Data.Input
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The currently selected enum value.
|
/// The currently selected enum value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public T Value => _dropdown != null && _dropdown.index >= 0 && _dropdown.index < _values.Count
|
public T Value => _dropdown is { index: >= 0 } && _dropdown.index < _values.Count
|
||||||
? _values[_dropdown.index]
|
? _values[_dropdown.index]
|
||||||
: default;
|
: default;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user