fix AppUpdater using
This commit is contained in:
@@ -195,10 +195,11 @@ Public Class Form1
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Async Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
|
Private Async Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
|
||||||
If Await AppUpdater.Check AndAlso RadMessageBox.Show(LangRes.MsgBox_UpdateAvailable, LangRes.MsgBox_UpdateAvailable_Title, MessageBoxButtons.YesNo, RadMessageIcon.Info) = DialogResult.Yes Then
|
Dim updater As New AppUpdater
|
||||||
|
If Await updater.Check AndAlso RadMessageBox.Show(LangRes.MsgBox_UpdateAvailable, LangRes.MsgBox_UpdateAvailable_Title, MessageBoxButtons.YesNo, RadMessageIcon.Info) = DialogResult.Yes Then
|
||||||
SetStatus(LangRes.StatusText_InstallingAppUpdate, MySymbols.icons8_software_installer_16px)
|
SetStatus(LangRes.StatusText_InstallingAppUpdate, MySymbols.icons8_software_installer_16px)
|
||||||
Enabled = False
|
Enabled = False
|
||||||
Await AppUpdater.Install()
|
Await updater.Install
|
||||||
Application.Restart()
|
Application.Restart()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Reference in New Issue
Block a user