do not ignore removed files by default via AppConfig

This commit is contained in:
2023-02-17 19:34:36 +01:00
parent 2be12d0630
commit c0c8878bc3
3 changed files with 13 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -1,4 +1,9 @@
Public Enum UpdateSyncAction
Imports Newtonsoft.Json
Imports Newtonsoft.Json.Converters
<JsonConverter(GetType(StringEnumConverter))>
<Flags>
Public Enum UpdateSyncAction
None
NewFile
RemovedFile