From 75a14bfaf264b4492e4014b1d9c25a4a8b211268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kham=C3=BBl?= <32278516+LordOfRhun@users.noreply.github.com> Date: Sun, 10 May 2020 00:59:34 -0400 Subject: [PATCH] fixed variable names --- Wabbajack/Settings.cs | 4 ++-- Wabbajack/View Models/Gallery/ModListGalleryVM.cs | 8 ++++---- .../Views/Settings/ModlistGallerySettingsView.xaml.cs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Wabbajack/Settings.cs b/Wabbajack/Settings.cs index 1aa60f9a..4987666f 100644 --- a/Wabbajack/Settings.cs +++ b/Wabbajack/Settings.cs @@ -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")] diff --git a/Wabbajack/View Models/Gallery/ModListGalleryVM.cs b/Wabbajack/View Models/Gallery/ModListGalleryVM.cs index fbbddb25..fafac642 100644 --- a/Wabbajack/View Models/Gallery/ModListGalleryVM.cs +++ b/Wabbajack/View Models/Gallery/ModListGalleryVM.cs @@ -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; } } diff --git a/Wabbajack/Views/Settings/ModlistGallerySettingsView.xaml.cs b/Wabbajack/Views/Settings/ModlistGallerySettingsView.xaml.cs index bdf02b49..f314727f 100644 --- a/Wabbajack/Views/Settings/ModlistGallerySettingsView.xaml.cs +++ b/Wabbajack/Views/Settings/ModlistGallerySettingsView.xaml.cs @@ -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); }); }