fix: Unwrap Task<Task<string>> from Dispatcher.InvokeAsync with async lambda
This commit is contained in:
@@ -212,7 +212,7 @@ public class UsageViewModel : INotifyPropertyChanged
|
|||||||
host.Show();
|
host.Show();
|
||||||
try { return await host.FetchAsync("https://claude.ai", script); }
|
try { return await host.FetchAsync("https://claude.ai", script); }
|
||||||
finally { host.Close(); }
|
finally { host.Close(); }
|
||||||
}).Task;
|
}).Task.Unwrap();
|
||||||
|
|
||||||
if (resultJson == null || resultJson == "null") return ([], null, null);
|
if (resultJson == null || resultJson == "null") return ([], null, null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user