This commit is contained in:
2dust
2024-10-19 14:30:14 +08:00
parent fe3836be14
commit 50449df08d
23 changed files with 93 additions and 60 deletions

View File

@@ -320,17 +320,17 @@ namespace v2rayN.Desktop.Views
public async Task ScanScreenTaskAsync()
{
ShowHideWindow(false);
//var dpiXY = QRCodeHelper.GetDpiXY(Application.Current.MainWindow);
//string result = await Task.Run(() =>
//ShowHideWindow(false);
NoticeHandler.Instance.SendMessageAndEnqueue("Not yet implemented.(还未实现)");
return;
//if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
//{
// return QRCodeHelper.ScanScreen(dpiXY.Item1, dpiXY.Item2);
//});
// //var bytes = QRCodeHelper.CaptureScreen(desktop);
// //await ViewModel?.ScanScreenResult(bytes);
//}
ShowHideWindow(true);
//ViewModel?.ScanScreenResult(result);
//ShowHideWindow(true);
}
private async Task ScanImageTaskAsync()
{