diff --git a/src/ViewModels/Clone.cs b/src/ViewModels/Clone.cs index 6a236ac5e..dbb618ec4 100644 --- a/src/ViewModels/Clone.cs +++ b/src/ViewModels/Clone.cs @@ -66,16 +66,19 @@ public Clone(string pageId) if (string.IsNullOrEmpty(ParentFolder)) _parentFolder = Preferences.Instance.GitDefaultCloneDir; - try + Task.Run(async () => { - var text = App.GetClipboardTextAsync().Result; - if (Models.Remote.IsValidURL(text)) - Remote = text; - } - catch - { - // Ignore - } + try + { + var text = await App.GetClipboardTextAsync(); + if (Models.Remote.IsValidURL(text)) + Remote = text; + } + catch + { + // Ignore + } + }); } public static ValidationResult ValidateRemote(string remote, ValidationContext _)