From 281c7a824af2ae641147cf520e29c5dcfb43aee6 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Wed, 4 Oct 2023 13:27:04 +0200 Subject: [PATCH] Migrate computer config --- Global_Indexer/ClassInit.vb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Global_Indexer/ClassInit.vb b/Global_Indexer/ClassInit.vb index f8e4b33..22469b4 100644 --- a/Global_Indexer/ClassInit.vb +++ b/Global_Indexer/ClassInit.vb @@ -22,8 +22,9 @@ Public Class ClassInit End Sub Public Sub InitConfig() - Dim oMigrator = New ConfigUtils(LOGCONFIG) - oMigrator.MigrateAppDataConfig(Application.UserAppDataPath, Application.ProductName, "Global Indexer") + Dim oUtils = New ConfigUtils(LOGCONFIG) + oUtils.MigrateAppDataConfig(Application.UserAppDataPath, Application.ProductName, "Global Indexer") + oUtils.MigrateAppDataConfig(Application.CommonAppDataPath, Application.ProductName, "Global Indexer") CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, Application.UserAppDataPath, Application.CommonAppDataPath, Application.StartupPath) LOGCONFIG.Debug = CONFIG.Config.LogDEBUG