Skip to content

Commit

Permalink
πŸ› Fix crash when repo opened in non-existent app
Browse files Browse the repository at this point in the history
Fixes #495
  • Loading branch information
Lamparter committed Aug 29, 2024
1 parent 79d9955 commit bef63b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FluentHub.App/UserControls/GitCloneFlyout.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private async void DownloadZipButton_Click(object sender, RoutedEventArgs e)
private async void GitHubDeskButton_Click(object sender, RoutedEventArgs e)
{
string encodedUrl = Uri.EscapeDataString(_repoGitUrl);
string openGitHubDesktopUrl = "x-github-client://openRepo " + encodedUrl;
string openGitHubDesktopUrl = "x-github-client://openRepo/" + encodedUrl;

var uri = new Uri(openGitHubDesktopUrl);

Expand All @@ -152,7 +152,7 @@ private async void GitHubDeskButton_Click(object sender, RoutedEventArgs e)
}
else
{
Log.Error($"Cannot open GitHub Desktop with uri \"" + openGitHubDesktopUrl + "\"");
Log.Error("Error opening GitHub Desktop");
}
}

Expand Down

0 comments on commit bef63b2

Please sign in to comment.