code style changes for readability

This commit is contained in:
Jack Baron 2020-02-03 02:41:09 +00:00
parent d5a1443b67
commit b89de856a2
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064
2 changed files with 9 additions and 1 deletions

View file

@ -29,7 +29,7 @@ namespace ModAssistant.Pages
public CollectionView view;
public bool PendingChanges;
private SemaphoreSlim _modsLoadSem = new SemaphoreSlim(1, 1);
private readonly SemaphoreSlim _modsLoadSem = new SemaphoreSlim(1, 1);
public List<ModListItem> ModList { get; set; }
@ -41,7 +41,9 @@ namespace ModAssistant.Pages
private void RefreshModsList()
{
if (view != null)
{
view.Refresh();
}
}
public async void LoadMods()

View file

@ -87,8 +87,11 @@ namespace ModAssistant.Pages
CheckInstalledMods = true;
Properties.Settings.Default.Save();
SelectInstalled.IsEnabled = true;
if (MainWindow.ModsOpened)
{
Mods.Instance.PendingChanges = true;
}
}
private void CheckInstalled_Unchecked(object sender, RoutedEventArgs e)
@ -98,8 +101,11 @@ namespace ModAssistant.Pages
CheckInstalledMods = false;
Properties.Settings.Default.Save();
SelectInstalled.IsEnabled = false;
if (MainWindow.ModsOpened)
{
Mods.Instance.PendingChanges = true;
}
}
public void ModelSaberProtocolHandler_Checked(object sender, RoutedEventArgs e)