Skip to content

Commit 9980b42

Browse files
committed
don't force refresh on check/uncheck mods
closes #380
1 parent b4f3ec5 commit 9980b42

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ModAssistant/Pages/Mods.xaml.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,24 +558,26 @@ private void UnresolveDependencies(Mod dependent)
558558

559559
private void ModCheckBox_Checked(object sender, RoutedEventArgs e)
560560
{
561-
Mod mod = ((sender as System.Windows.Controls.CheckBox).Tag as Mod);
561+
Mod mod = (sender as System.Windows.Controls.CheckBox).Tag as Mod;
562562
mod.ListItem.IsSelected = true;
563563
ResolveDependencies(mod);
564564
App.SavedMods.Add(mod.name);
565565
Properties.Settings.Default.SavedMods = string.Join(",", App.SavedMods.ToArray());
566566
Properties.Settings.Default.Save();
567-
RefreshModsList();
567+
568+
// RefreshModsList();
568569
}
569570

570571
private void ModCheckBox_Unchecked(object sender, RoutedEventArgs e)
571572
{
572-
Mod mod = ((sender as System.Windows.Controls.CheckBox).Tag as Mod);
573+
Mod mod = (sender as System.Windows.Controls.CheckBox).Tag as Mod;
573574
mod.ListItem.IsSelected = false;
574575
UnresolveDependencies(mod);
575576
App.SavedMods.Remove(mod.name);
576577
Properties.Settings.Default.SavedMods = string.Join(",", App.SavedMods.ToArray());
577578
Properties.Settings.Default.Save();
578-
RefreshModsList();
579+
580+
// RefreshModsList();
579581
}
580582

581583
public class Category

0 commit comments

Comments
 (0)