mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-22 04:10:39 +12:00
code style changes for readability
This commit is contained in:
parent
d5a1443b67
commit
b89de856a2
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue