Skip to content

Commit

Permalink
open update instructions link
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlyson authored and cezarypiatek committed Nov 18, 2023
1 parent 9f2096d commit 7feca97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/WireMockInspector/ViewModels/GithubUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public void OpenReleaseLog()
OpenWebsite(@$"https://github.com/{_repositorySku}/releases/");
}

public void OpenUpdateInstructions()
{
OpenWebsite(@$"https://github.com/{_repositorySku}/#how-to-update");
}

private static void OpenWebsite(string url)
{
Process.Start(new ProcessStartInfo
Expand Down
3 changes: 2 additions & 1 deletion src/WireMockInspector/Views/NewVersionInfo.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<Border BorderBrush="#FF0000" BorderThickness="1" >
<StackPanel Orientation="Horizontal" Margin="20" VerticalAlignment="Center">
<TextBlock VerticalAlignment="Center" Text="{Binding Version, StringFormat='{} A newer version {0} is available'}"></TextBlock>
<Button Margin="20,0,0,0" VerticalAlignment="Center" Command="{Binding OpenReleaseLog}">Check release log</Button>
<Button Margin="20,0,0,0" VerticalAlignment="Center" Command="{Binding OpenReleaseLog}">Check release log</Button>
<Button Margin="20,0,0,0" VerticalAlignment="Center" Command="{Binding OpenUpdateInstructions}">How to update</Button>
<Button Margin="20,0,0,0" VerticalAlignment="Center" Command="{Binding DismissNewVersion}">Dismiss</Button>
</StackPanel>
</Border>
Expand Down

0 comments on commit 7feca97

Please sign in to comment.