fix qrcode dialog

This commit is contained in:
DismissedLight
2023-12-13 20:22:29 +08:00
parent de46d5f9bf
commit 8fe1b48fd4
2 changed files with 3 additions and 3 deletions

View File

@@ -16,6 +16,6 @@
<Image
Width="320"
Height="320"
Source="{x:Bind QRCodeSource}"/>
Source="{x:Bind QRCodeSource, Mode=OneWay}"/>
</StackPanel>
</ContentDialog>
</ContentDialog>

View File

@@ -71,7 +71,7 @@ internal sealed partial class UserQRCodeDialog : ContentDialog, IDisposable
private async ValueTask<ValueResult<bool, UidGameToken>> GetUidGameTokenCoreAsync()
{
await taskContext.SwitchToMainThreadAsync();
await ShowAsync();
_ = ShowAsync();
while (!userManualCancellationTokenSource.IsCancellationRequested)
{