Config: Write UserConfig.xml if it does not exist
This commit is contained in:
parent
45de1d6122
commit
fddeccd52b
@ -278,8 +278,6 @@ Public Class ConfigManager(Of T)
|
||||
|
||||
' if user config exists
|
||||
If Not IsNothing(oUserConfig) Then
|
||||
Dim oExcludedAttributes As New List(Of Type)
|
||||
|
||||
' Copy values from user config to final config
|
||||
If _WriteAllValuesToUserConfig Then
|
||||
CopyValues(oUserConfig, Config, New List(Of Type))
|
||||
@ -294,7 +292,8 @@ Public Class ConfigManager(Of T)
|
||||
_Logger.Warn("User config could not be loaded!")
|
||||
End Try
|
||||
Else
|
||||
_Logger.Debug("User config does not exist.")
|
||||
_Logger.Debug("User config does not exist. Default config will be created")
|
||||
WriteToFile(Config, _UserConfigPath, False)
|
||||
End If
|
||||
|
||||
Return Config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user