mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
# VPet.Solution
## 修复 - `设置编辑器-mod设置-清除失效模组`卡死的问题
This commit is contained in:
parent
b4c9501f7f
commit
eb3fba97d0
@ -117,7 +117,6 @@
|
||||
<Compile Include="ViewModels\SaveViewer\SaveWindowVM.cs" />
|
||||
<Compile Include="ViewModels\SettingEditor\CustomizedSettingPageVM.cs" />
|
||||
<Compile Include="ViewModels\SettingEditor\DiagnosticSettingPageVM.cs" />
|
||||
<Compile Include="ViewModels\SettingEditor\ModSettingModelModel.cs" />
|
||||
<Compile Include="ViewModels\SettingEditor\ModSettingPageVM.cs" />
|
||||
<Compile Include="Models\SettingEditor\SettingModel.cs" />
|
||||
<Compile Include="ViewModels\SettingEditor\SystemSettingPageVM.cs" />
|
||||
|
@ -1,5 +0,0 @@
|
||||
namespace VPet.Solution.ViewModels.SettingEditor;
|
||||
|
||||
internal class ModSettingModelModel
|
||||
{
|
||||
}
|
@ -120,10 +120,10 @@ public class ModSettingPageVM : ObservableClass<ModSettingPageVM>
|
||||
is not MessageBoxResult.Yes
|
||||
)
|
||||
return;
|
||||
foreach (var mod in ModSetting.Mods.AsEnumerable())
|
||||
for (var i = 0; i < ModSetting.Mods.Count; i++)
|
||||
{
|
||||
if (mod.IsEnabled is null)
|
||||
ModSetting.Mods.Remove(mod);
|
||||
if (ModSetting.Mods[i].IsEnabled is null)
|
||||
ModSetting.Mods.RemoveAt(i);
|
||||
}
|
||||
SearchMod = string.Empty;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using HKW.HKWUtils.Observable;
|
||||
using LinePutScript;
|
||||
using LinePutScript.Localization.WPF;
|
||||
using Panuon.WPF.UI;
|
||||
using Panuon.WPF;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
Loading…
Reference in New Issue
Block a user