From 04c3506e1169a43f669ebd004c75461d83d75a4a Mon Sep 17 00:00:00 2001 From: Strappazzon Date: Thu, 12 Mar 2020 19:42:33 +0100 Subject: [PATCH] Open Releases page when the user clicks "Yes" on the update dialog --- src/Form1.vb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Form1.vb b/src/Form1.vb index 7db4f2c..e38d826 100644 --- a/src/Form1.vb +++ b/src/Form1.vb @@ -89,7 +89,10 @@ Public Class Form1 'Compare downloaded SuperBLT Hasher version number with the current one If FetchedVer > VersionCode Then - MessageBox.Show("A newer version of SuperBLT Hasher is available. Do you want to visit the download page now?", "Update available", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) + Dim result = MessageBox.Show("A newer version of SuperBLT Hasher is available. Do you want to visit the download page now?", "Update available", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) + If result = DialogResult.Yes Then + Process.Start("https://github.com/Strappazzon/PD2-SuperBLT-Hasher/releases/latest") + End If End If End If End Sub