mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fixed variable names
This commit is contained in:
parent
961fb39f9a
commit
75a14bfaf2
@ -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")]
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user