mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-28 02:50:28 +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 CollectionView view;
|
||||||
public bool PendingChanges;
|
public bool PendingChanges;
|
||||||
|
|
||||||
private SemaphoreSlim _modsLoadSem = new SemaphoreSlim(1, 1);
|
private readonly SemaphoreSlim _modsLoadSem = new SemaphoreSlim(1, 1);
|
||||||
|
|
||||||
public List<ModListItem> ModList { get; set; }
|
public List<ModListItem> ModList { get; set; }
|
||||||
|
|
||||||
|
@ -41,7 +41,9 @@ namespace ModAssistant.Pages
|
||||||
private void RefreshModsList()
|
private void RefreshModsList()
|
||||||
{
|
{
|
||||||
if (view != null)
|
if (view != null)
|
||||||
|
{
|
||||||
view.Refresh();
|
view.Refresh();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async void LoadMods()
|
public async void LoadMods()
|
||||||
|
|
|
@ -87,8 +87,11 @@ namespace ModAssistant.Pages
|
||||||
CheckInstalledMods = true;
|
CheckInstalledMods = true;
|
||||||
Properties.Settings.Default.Save();
|
Properties.Settings.Default.Save();
|
||||||
SelectInstalled.IsEnabled = true;
|
SelectInstalled.IsEnabled = true;
|
||||||
|
|
||||||
if (MainWindow.ModsOpened)
|
if (MainWindow.ModsOpened)
|
||||||
|
{
|
||||||
Mods.Instance.PendingChanges = true;
|
Mods.Instance.PendingChanges = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckInstalled_Unchecked(object sender, RoutedEventArgs e)
|
private void CheckInstalled_Unchecked(object sender, RoutedEventArgs e)
|
||||||
|
@ -98,8 +101,11 @@ namespace ModAssistant.Pages
|
||||||
CheckInstalledMods = false;
|
CheckInstalledMods = false;
|
||||||
Properties.Settings.Default.Save();
|
Properties.Settings.Default.Save();
|
||||||
SelectInstalled.IsEnabled = false;
|
SelectInstalled.IsEnabled = false;
|
||||||
|
|
||||||
if (MainWindow.ModsOpened)
|
if (MainWindow.ModsOpened)
|
||||||
|
{
|
||||||
Mods.Instance.PendingChanges = true;
|
Mods.Instance.PendingChanges = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ModelSaberProtocolHandler_Checked(object sender, RoutedEventArgs e)
|
public void ModelSaberProtocolHandler_Checked(object sender, RoutedEventArgs e)
|
||||||
|
|
Loading…
Reference in a new issue