fixed variable names

This commit is contained in:
Khamûl 2020-05-10 00:59:34 -04:00
parent 961fb39f9a
commit 75a14bfaf2
3 changed files with 7 additions and 7 deletions

View File

@ -99,12 +99,12 @@ namespace Wabbajack
[JsonObject(MemberSerialization.OptOut)]
public class FiltersSettings : ViewModel
{
public bool showNSFW { get; set; }
public bool ShowNSFW { get; set; }
public bool OnlyInstalled { get; set; }
public string Game { get; set; }
public string Search { get; set; }
private bool _isPersistent = true;
public bool isPersistent { get => _isPersistent; set => RaiseAndSetIfChanged(ref _isPersistent, value); }
public bool IsPersistent { get => _isPersistent; set => RaiseAndSetIfChanged(ref _isPersistent, value); }
}
[JsonName("PerformanceSettings")]

View File

@ -65,10 +65,10 @@ namespace Wabbajack
// load persistent filter settings
settings = MWVM.Settings.Filters;
if (settings.isPersistent)
if (settings.IsPersistent)
{
GameType = !string.IsNullOrEmpty(settings.Game) ? settings.Game : ALL_GAME_TYPE;
ShowNSFW = settings.showNSFW;
ShowNSFW = settings.ShowNSFW;
OnlyInstalled = settings.OnlyInstalled;
if (OnlyInstalled)
GameTypeEnabled = false;
@ -215,13 +215,13 @@ namespace Wabbajack
private void UpdateFiltersSettings()
{
if (!settings.isPersistent)
if (!settings.IsPersistent)
return;
if (!string.IsNullOrEmpty(GameType))
settings.Game = GameType;
if (Search != null)
settings.Search = Search;
settings.showNSFW = ShowNSFW;
settings.ShowNSFW = ShowNSFW;
settings.OnlyInstalled = OnlyInstalled;
}
}

View File

@ -31,7 +31,7 @@ namespace Wabbajack
this.WhenActivated(disposable =>
{
// Bind Values
this.Bind(this.ViewModel, x => x.isPersistent, x => x.FilterPersistCheckBox.IsChecked)
this.Bind(this.ViewModel, x => x.IsPersistent, x => x.FilterPersistCheckBox.IsChecked)
.DisposeWith(disposable);
});
}