From c45e3d1817afa15ab6e72f414c67ed04bdf918a1 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Thu, 21 Jan 2021 17:35:44 +0100 Subject: [PATCH] bump version + weird fix that was somehow necessary happened if a different version of fantome was already running i think? --- Fantome/Fantome.csproj | 6 +++--- Fantome/MainWindow.xaml.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Fantome/Fantome.csproj b/Fantome/Fantome.csproj index e3c10ba..475e8b1 100644 --- a/Fantome/Fantome.csproj +++ b/Fantome/Fantome.csproj @@ -4,13 +4,13 @@ WinExe netcoreapp3.1 true - 1.1.4.0 + 1.1.5.1 Crauzer - 1.1.4.0 + 1.1.5.1 x64 app.manifest Resources\icon.ico - 1.1.4 + 1.1.5.1 GPL-3.0-or-later https://github.com/LoL-Fantome/Fantome https://github.com/LoL-Fantome/Fantome diff --git a/Fantome/MainWindow.xaml.cs b/Fantome/MainWindow.xaml.cs index d526171..622fb9b 100644 --- a/Fantome/MainWindow.xaml.cs +++ b/Fantome/MainWindow.xaml.cs @@ -121,7 +121,7 @@ protected override void OnStateChanged(EventArgs e) } private void OnClosing(object sender, CancelEventArgs e) { - this.ViewModel.TrayIcon.Dispose(); + this.ViewModel?.TrayIcon.Dispose(); } private async void OnDrop(object sender, System.Windows.DragEventArgs e) {