From 7a80bad02767551dd412978982ce39a0618fd895 Mon Sep 17 00:00:00 2001 From: David Hancock Date: Sun, 17 Dec 2023 17:02:41 +0000 Subject: [PATCH 1/2] Update about box version in a vain attempt to defeat a false positive windows defender trojan detection when running the installer. --- SudokuSolver/Views/AboutBox.xaml | 2 +- SudokuSolver/Views/AboutBox.xaml.cs | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/SudokuSolver/Views/AboutBox.xaml b/SudokuSolver/Views/AboutBox.xaml index f2e70ef..b1eb181 100644 --- a/SudokuSolver/Views/AboutBox.xaml +++ b/SudokuSolver/Views/AboutBox.xaml @@ -19,7 +19,7 @@ - + GitHub Repository diff --git a/SudokuSolver/Views/AboutBox.xaml.cs b/SudokuSolver/Views/AboutBox.xaml.cs index b2cce0d..51c670a 100644 --- a/SudokuSolver/Views/AboutBox.xaml.cs +++ b/SudokuSolver/Views/AboutBox.xaml.cs @@ -12,17 +12,10 @@ public AboutBox(XamlRoot xamlRoot) Version? v = typeof(App).Assembly.GetName().Version; if (v is not null) - VersionTextBlock.Text = string.Format(VersionTextBlock.Text, v.Major, v.Minor, v.Build); + VersionTextBlock.Text = $"Version: {v.Major}.{v.Minor}.{v.Build}"; PrimaryButtonText = "OK"; -#if DEBUG - if (App.IsPackaged) - VersionTextBlock.Text += " (P)"; - else - VersionTextBlock.Text += " (D)"; -#endif - Loaded += (s, e) => { string fileName = ActualTheme == ElementTheme.Light ? "about_light.png" : "about_dark.png"; From 42c776a4ba2f6c6c45bf67104335a0d277cb346d Mon Sep 17 00:00:00 2001 From: David Hancock Date: Sun, 17 Dec 2023 17:23:16 +0000 Subject: [PATCH 2/2] Remove unused property It's in WindowBase.cs now. --- SudokuSolver/Views/ColorsWindow.xaml.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/SudokuSolver/Views/ColorsWindow.xaml.cs b/SudokuSolver/Views/ColorsWindow.xaml.cs index 14e553f..a64a653 100644 --- a/SudokuSolver/Views/ColorsWindow.xaml.cs +++ b/SudokuSolver/Views/ColorsWindow.xaml.cs @@ -7,15 +7,10 @@ internal sealed partial class ColorsWindow : WindowBase { public ColorsViewModel ViewModel { get; } - private readonly InputNonClientPointerSource inputNonClientPointerSource; - - public ColorsWindow() { this.InitializeComponent(); - inputNonClientPointerSource = InputNonClientPointerSource.GetForWindowId(AppWindow.Id); - ViewModel = new ColorsViewModel(); LayoutRoot.RequestedTheme = ViewModel.Theme;