Merge pull request #1224 from wabbajack-tools/make-gallery-title-optional

Fixes issue#2112
This commit is contained in:
Timothy Baldridge 2020-12-15 21:23:49 -07:00 committed by GitHub
commit 65a8372ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -37,6 +37,9 @@ namespace Wabbajack.Lib.ModListRegistry
[JsonProperty("utility_list")]
public bool UtilityList { get; set; }
[JsonProperty("image_contains_title")]
public bool ImageContainsTitle { get; set; }
[JsonProperty("force_down")]
public bool ForceDown { get; set; }

View File

@ -36,12 +36,17 @@ namespace Wabbajack
.Select(p => p.Value)
.BindToStrict(this, x => x.DownloadProgressBar.Value)
.DisposeWith(dispose);
this.WhenAny(x => x.ViewModel.Metadata.Title)
this.WhenAny(x => x.ViewModel.Metadata)
.Where(x => !x.ImageContainsTitle)
.Select(x => x.Title)
.BindToStrict(this, x => x.DescriptionTextShadow.Text)
.DisposeWith(dispose);
this.WhenAny(x => x.ViewModel.Metadata.Title)
this.WhenAny(x => x.ViewModel.Metadata)
.Where(x => !x.ImageContainsTitle)
.Select(x => x.Title)
.BindToStrict(this, x => x.ModListTitleShadow.Text)
.DisposeWith(dispose);
this.WhenAny(x => x.ViewModel.IsBroken)
.Select(x => x ? Visibility.Visible : Visibility.Collapsed)
.BindToStrict(this, x => x.Overlay.Visibility)