Config: Fix error when computerconfig dir does not exist

This commit is contained in:
Jonathan Jenne 2021-06-30 14:48:37 +02:00
parent 321c8fe498
commit ed78d93def

View File

@ -116,6 +116,8 @@ Public Class ConfigManager(Of T)
If ComputerConfigPath <> String.Empty Then
If IO.File.Exists(ComputerConfigPath) Then
_ComputerDirectory = _File.CreateDirectory(ComputerConfigPath, False)
Else
_ComputerDirectory = ComputerConfigPath
End If
_ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME)
End If