Migrate to C#12

This commit is contained in:
copecone committed 2026-10-22 11:54:26 +09:00
1 parent 7eaf4f48e6
commit 98d31404cc
24 files changed
+42 -42

No files matched your search

+3 -2
View File
@@ -183,6 +183,7 @@ internal class SegmentedControl<T> : O5Object
segmentObj.transform.SetParent(maskRect, false);
var segRect = segmentObj.AddComponent<RectTransform>();
// ReSharper disable once InconsistentNaming
var segLE = segmentObj.AddComponent<LayoutElement>();
segLE.minWidth = 0f;
segLE.preferredWidth = 0f;
@@ -323,7 +324,7 @@ internal class SegmentedControl<T> : O5Object
if (EqualityComparer<T>.Default.Equals(_value, newValue)) return;
_value = newValue;
UpdateVisual(false);
UpdateVisual();
if (notify)
{
@@ -337,7 +338,7 @@ internal class SegmentedControl<T> : O5Object
if (EqualityComparer<T>.Default.Equals(_value, value)) return;
_value = value;
UpdateVisual(false);
UpdateVisual();
if (notify)
{