feat: update to latest nightly.

This commit is contained in:
rabbitism
2023-04-23 01:10:23 +08:00
parent 95df47eeba
commit 39b17f52d1
23 changed files with 77 additions and 103 deletions

View File

@@ -1,5 +1,6 @@
using System.Globalization;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using Avalonia.Input.Platform;
using Avalonia.Media;
@@ -95,11 +96,12 @@ public class ColorDetailControl: TemplatedControl
}
}
if (Application.Current is { Clipboard: { } c })
var toplevel = TopLevel.GetTopLevel(this);
if (toplevel?.Clipboard is { } c)
{
await c.SetTextAsync(text??string.Empty);
}
}
}