Windows: Get rid of more warnings

This commit is contained in:
2024-02-29 16:14:13 +01:00
parent 247367d1bf
commit 55c447621b
2 changed files with 10 additions and 10 deletions

View File

@ -52,13 +52,13 @@ namespace Elwig.Windows {
var year = (SeasonList.SelectedItem as Season)?.Year;
foreach (var (modid, _) in _mods.Where(m => m.Value == null)) {
Context.Remove(Context.Modifiers.Find(year, modid));
Context.Remove(Context.Modifiers.Find(year, modid)!);
}
foreach (var (mod, old) in _modIds) {
mod.ModId = old;
}
foreach (var (old, modid) in _mods.Where(m => m.Value != null)) {
Context.Update(Context.Modifiers.Find(year, old));
Context.Update(Context.Modifiers.Find(year, old)!);
}
await Context.SaveChangesAsync();