From c64468636b2e0e6d56a91cada8d6b1b44dd5a78e Mon Sep 17 00:00:00 2001 From: Nadromar Date: Sat, 30 Mar 2019 07:50:17 +0100 Subject: [PATCH] Adjust Open Logs Directory button in Advanced Settings Window - fixed typo - Add version to log when starting application --- MultiTablePro/App.xaml.cs | 3 ++- MultiTablePro/Logger.cs | 4 ++-- MultiTablePro/UI/AdvancedSettingsWindow.xaml | 2 +- MultiTablePro/UI/AdvancedSettingsWindow.xaml.cs | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/MultiTablePro/App.xaml.cs b/MultiTablePro/App.xaml.cs index 9a02406..7f8e093 100644 --- a/MultiTablePro/App.xaml.cs +++ b/MultiTablePro/App.xaml.cs @@ -3,6 +3,7 @@ using System.Configuration; using System.Data; using System.Linq; +using System.Reflection; using System.Threading.Tasks; using System.Windows; using MultiTablePro.Data; @@ -24,7 +25,7 @@ protected override void OnStartup(StartupEventArgs e) // Notify application started App.Current.Properties["IsRunning"] = true; - Logger.Log("--- Starting application ---"); + Logger.Log($"--- MultiTable Pro v{Assembly.GetExecutingAssembly().GetName().Version.ToString()} Started ---"); // Load config & install on first run // Config needs to be initialized before the license check diff --git a/MultiTablePro/Logger.cs b/MultiTablePro/Logger.cs index 4bf7c47..3191eff 100644 --- a/MultiTablePro/Logger.cs +++ b/MultiTablePro/Logger.cs @@ -58,8 +58,8 @@ public enum Status }; static Queue writeQueue = new Queue(); - static string LogFilePath { get; set; } - static Status LogLevel { get; set; } + public static string LogFilePath { get; set; } + public static Status LogLevel { get; set; } public static void Log(string message, Status status = Status.Info, bool showMessageBox = false) { diff --git a/MultiTablePro/UI/AdvancedSettingsWindow.xaml b/MultiTablePro/UI/AdvancedSettingsWindow.xaml index c172d65..5dfa2cb 100644 --- a/MultiTablePro/UI/AdvancedSettingsWindow.xaml +++ b/MultiTablePro/UI/AdvancedSettingsWindow.xaml @@ -46,7 +46,7 @@ This should only be enabled to collect data for a bug report. Application must be restarted for changes to take effect. -