From 89f45c37c58107d640b2d576ed7e8ef077feac22 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 29 Jun 2021 13:28:54 +0200 Subject: [PATCH] Config: HOTFIX: dont do a write check for computer config and only create if not exists yet --- 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 f471fb08..f94d645b 100644 --- a/Modules.Config/ConfigManager.vb +++ b/Modules.Config/ConfigManager.vb @@ -114,11 +114,13 @@ Public Class ConfigManager(Of T) _UserConfigPath = Path.Combine(_UserDirectory, USER_CONFIG_NAME) If ComputerConfigPath <> String.Empty Then - _ComputerDirectory = _File.CreateDirectory(ComputerConfigPath) + If IO.File.Exists(ComputerConfigPath) Then + _ComputerDirectory = _File.CreateDirectory(ComputerConfigPath, False) + End If _ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME) End If - If ApplicationStartupPath <> String.Empty Then + If ApplicationStartupPath <> String.Empty Then _Logger.Debug($"AppConfig is being used: [{ApplicationStartupPath}]") _AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME) End If