do not ignore removed files by default via AppConfig
This commit is contained in:
@@ -4,8 +4,12 @@ Imports Newtonsoft.Json.Linq
|
||||
|
||||
Public Class AppConfig
|
||||
|
||||
Public Property LastMinecraftProfilePath As string
|
||||
Public Property LastConfigFilePath As string
|
||||
Public Property LastMinecraftProfilePath As String
|
||||
Public Property LastConfigFilePath As String
|
||||
Public Property KeepLocalFiles As New List(Of String) From {
|
||||
"OptiFine_1.7.10_HD_U_E7.jar"
|
||||
}
|
||||
Public Property RemoveLocalFiles As Boolean
|
||||
|
||||
Public Shared ReadOnly Property Instance As AppConfig
|
||||
Get
|
||||
|
||||
@@ -82,7 +82,7 @@ Public Class Form1
|
||||
AddHandler updater.InstallProgessUpdated, AddressOf Update_InstallProgessUpdated
|
||||
AddHandler updater.CheckingProgressUpdated, AddressOf Updated_CheckingProgresssUpdated
|
||||
|
||||
Dim result As UpdateCheckResult = Await updater.CheckForUpdates(True)
|
||||
Dim result As UpdateCheckResult = Await updater.CheckForUpdates(AppConfig.Instance.RemoveLocalFiles)
|
||||
Dim everytingOk As Boolean = False
|
||||
|
||||
If result Is Nothing Then
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
Public Enum UpdateSyncAction
|
||||
Imports Newtonsoft.Json
|
||||
Imports Newtonsoft.Json.Converters
|
||||
|
||||
<JsonConverter(GetType(StringEnumConverter))>
|
||||
<Flags>
|
||||
Public Enum UpdateSyncAction
|
||||
None
|
||||
NewFile
|
||||
RemovedFile
|
||||
|
||||
Reference in New Issue
Block a user