diff --git a/DigglesModManager.csproj b/DigglesModManager.csproj index 11325b4..3a03d9d 100644 --- a/DigglesModManager.csproj +++ b/DigglesModManager.csproj @@ -24,7 +24,7 @@ false true 0 - 1.3.0.%2a + 1.3.1.%2a false true diff --git a/FormMain.cs b/FormMain.cs index 78edaee..edf5d9f 100644 --- a/FormMain.cs +++ b/FormMain.cs @@ -174,13 +174,19 @@ private void ReadMods() var modDirectories = (new DirectoryInfo($"{Paths.ModPath}\\{Paths.ModDirectoryName}")).GetDirectories(); foreach (var modInfo in modDirectories) { - var modObject = new Mod(modInfo.Name); + var active = true; + var modObject = activeMods.Find(mod => mod.ModDirectoryName.Equals(modInfo.Name)); + if (modObject == null) + { + active = false; + modObject = new Mod(modInfo.Name); + } ListViewItem listViewItem = new ListViewItem(modObject.ToString(), "") { Tag = modObject }; listViewItem.ToolTipText = modObject.GetToolTipText(); - if (activeMods.Exists(mod => mod.ModDirectoryName.Equals(modInfo.Name))) + if (active) { activeModsListView.Items.Add(listViewItem); } diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 97b135c..5b1009f 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -30,4 +30,4 @@ // // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben. -[assembly: AssemblyVersion("1.2.1.*")] +[assembly: AssemblyVersion("1.3.1.*")]