Add config migrator

This commit is contained in:
Jonathan Jenne 2023-09-29 13:17:37 +02:00
parent 54bb1bb451
commit b18eedf701
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,9 @@ Public Class ClassInit
End Sub
Public Sub InitConfig()
Dim oMigrator = New ConfigUtils(LOGCONFIG)
oMigrator.MigrateAppDataConfig(Application.UserAppDataPath, Application.ProductName, "Global Indexer")
CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, Application.UserAppDataPath, Application.CommonAppDataPath, Application.StartupPath)
LOGCONFIG.Debug = CONFIG.Config.LogDEBUG
LOGGER.Info("Debug log set to: [{0}]", LOGCONFIG.Debug)

View File

@ -610,7 +610,7 @@
<value>DocumentViewer1</value>
</data>
<data name="&gt;&gt;DocumentViewer1.Type" xml:space="preserve">
<value>DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=1.9.1.0, Culture=neutral, PublicKeyToken=null</value>
<value>DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=1.9.2.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;DocumentViewer1.Parent" xml:space="preserve">
<value>SplitContainer1.Panel2</value>