fix(about): copyright carries the year — © 2026 Llama Chile Shop
Derived from the clock rather than a literal, so a build shipped next year does not display a stale date. The About test asserts the rendered string, year included.
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
Style="{StaticResource YtButtonSecondary}" FontSize="11" Padding="10,5"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock x:Name="AboutCopyright" Text="© Llama Chile Shop"
|
||||
<TextBlock x:Name="AboutCopyright" Text="{Binding CopyrightLabel}"
|
||||
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||
HorizontalAlignment="Center" Margin="0,18,0,4"/>
|
||||
</StackPanel>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Windows.Input;
|
||||
@@ -46,6 +47,10 @@ public partial class MainViewModel : ViewModelBase
|
||||
public string PaidOfferText => "Unlocks 60 fps for streaming and recording.";
|
||||
public string TrustLine => "One-time purchase · lifetime licence · no account, no subscription, no tracking.";
|
||||
|
||||
/// <summary>Footer copyright. The year is the current one, not a hardcoded literal, so a build
|
||||
/// shipped next year does not carry a stale date.</summary>
|
||||
public string CopyrightLabel => $"© {DateTime.Now.Year} Llama Chile Shop";
|
||||
|
||||
/// <summary>Shown instead of the price and CTA once ownership is verified: a paying customer is
|
||||
/// never sold to.</summary>
|
||||
public string LicenceStateLabel => IsAppOwned ? "Licence: owned via Steam — thank you." : string.Empty;
|
||||
|
||||
@@ -117,7 +117,7 @@ public sealed class AboutHubTests
|
||||
Assert.Equal(Visibility.Visible, upgradeBlock!.Visibility);
|
||||
|
||||
var copyright = FindVisualChildByName<TextBlock>(window, "AboutCopyright");
|
||||
Assert.Equal("© Llama Chile Shop", copyright!.Text);
|
||||
Assert.Equal($"© {DateTime.Now.Year} Llama Chile Shop", copyright!.Text);
|
||||
Assert.DoesNotContain("Made by gramps", TextOf(window));
|
||||
|
||||
// A paying customer is never sold to.
|
||||
|
||||
Reference in New Issue
Block a user