We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ctrl+N
1 parent 6476dbb commit 95ec6e7Copy full SHA for 95ec6e7
src/ViewModels/Clone.cs
@@ -66,16 +66,19 @@ public Clone(string pageId)
66
if (string.IsNullOrEmpty(ParentFolder))
67
_parentFolder = Preferences.Instance.GitDefaultCloneDir;
68
69
- try
+ Task.Run(async () =>
70
{
71
- var text = App.GetClipboardTextAsync().Result;
72
- if (Models.Remote.IsValidURL(text))
73
- Remote = text;
74
- }
75
- catch
76
- {
77
- // Ignore
78
+ try
+ {
+ var text = await App.GetClipboardTextAsync();
+ if (Models.Remote.IsValidURL(text))
+ Remote = text;
+ }
+ catch
79
+ // Ignore
80
81
+ });
82
}
83
84
public static ValidationResult ValidateRemote(string remote, ValidationContext _)
0 commit comments