From 3d5315d0323ddf03e7b1c902cab09c44fb077d79 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Thu, 14 May 2020 13:16:22 +0200 Subject: [PATCH] Config: Fix creating ComputerConfig folder when no path is given --- Modules.Config/ConfigManager.vb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules.Config/ConfigManager.vb b/Modules.Config/ConfigManager.vb index e357490e..d8120d0b 100644 --- a/Modules.Config/ConfigManager.vb +++ b/Modules.Config/ConfigManager.vb @@ -86,8 +86,10 @@ Public Class ConfigManager(Of T) _UserDirectory = _File.CreateDirectory(UserConfigPath) _UserConfigPath = Path.Combine(_UserDirectory, USER_CONFIG_NAME) - _ComputerDirectory = _File.CreateDirectory(ComputerConfigPath) - _ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME) + If ComputerConfigPath <> String.Empty Then + _ComputerDirectory = _File.CreateDirectory(ComputerConfigPath) + _ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME) + End If If ApplicationStartupPath <> String.Empty Then _AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME)