We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc57c06 commit 4a0426bCopy full SHA for 4a0426b
1 file changed
Source/HedgeModManager.UI/ViewModels/MainWindowViewModel.cs
@@ -455,7 +455,8 @@ public async Task SaveAsync(bool setBusy = true)
455
456
// Ensure enabled mods are on top of disabled mods
457
// TODO: Find a method to reorder without full update
458
- Mods = new (SelectedGame.Game.ModDatabase.Mods.OrderBy(x => !x.Enabled));
+ if (SelectedGame.Game.ModDatabase is ModDatabaseGeneric modsDB)
459
+ Mods = new(modsDB.Mods = new(modsDB.Mods.OrderBy(x => !x.Enabled)));
460
461
await SelectedGame.Game.ModDatabase.Save();
462
if (SelectedGame.Game.ModLoaderConfiguration is ModLoaderConfiguration config)
0 commit comments