Config: Fix creating ComputerConfig folder when no path is given
This commit is contained in:
parent
ab83044664
commit
3d5315d032
@ -86,8 +86,10 @@ Public Class ConfigManager(Of T)
|
|||||||
_UserDirectory = _File.CreateDirectory(UserConfigPath)
|
_UserDirectory = _File.CreateDirectory(UserConfigPath)
|
||||||
_UserConfigPath = Path.Combine(_UserDirectory, USER_CONFIG_NAME)
|
_UserConfigPath = Path.Combine(_UserDirectory, USER_CONFIG_NAME)
|
||||||
|
|
||||||
_ComputerDirectory = _File.CreateDirectory(ComputerConfigPath)
|
If ComputerConfigPath <> String.Empty Then
|
||||||
_ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME)
|
_ComputerDirectory = _File.CreateDirectory(ComputerConfigPath)
|
||||||
|
_ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME)
|
||||||
|
End If
|
||||||
|
|
||||||
If ApplicationStartupPath <> String.Empty Then
|
If ApplicationStartupPath <> String.Empty Then
|
||||||
_AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME)
|
_AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user