Commit 18e2afe 1 parent f4f10c1 commit 18e2afe Copy full SHA for 18e2afe
File tree 1 file changed +3
-3
lines changed
src/GHOSTbackup/GHOSTbackup.Helpers
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ Public Class Updater
33
33
'Check for updates
34
34
'//docs.microsoft.com/en-us/dotnet/api/system.net.downloadstringcompletedeventargs
35
35
If Form1.CheckUpdatesChkBox.Checked = True Then
36
- Using Updater As New WebClient
36
+ Using Updater As WebClient = New WebClient()
37
37
Updater.Headers.Add( "User-Agent" , "GHOST Buster (+https://strappazzon.xyz/GRW-GHOST-Buster)" )
38
- Dim VersionURI As New Uri( "https://raw.githubusercontent.com/Strappazzon/GRW-GHOST-Buster/master/version" )
38
+ Dim VersionURI As Uri = New Uri( "https://raw.githubusercontent.com/Strappazzon/GRW-GHOST-Buster/master/version" )
39
39
Updater.DownloadStringAsync(VersionURI)
40
40
'Call updater_DownloadStringCompleted when the download completes
41
41
AddHandler Updater.DownloadStringCompleted, AddressOf Updater_DownloadStringCompleted
42
42
End Using
43
43
End If
44
44
End Sub
45
45
46
- Private Shared Sub Updater_DownloadStringCompleted( ByVal sender As Object , ByVal e As DownloadStringCompletedEventArgs)
46
+ Private Shared Sub Updater_DownloadStringCompleted(sender As Object , e As DownloadStringCompletedEventArgs)
47
47
If e.Error Is Nothing Then
48
48
Dim FetchedVer As Integer = e.Result
49
49
You can’t perform that action at this time.
0 commit comments