From 65763bcbb58a4176c129d7c147c7ab158c1f50d6 Mon Sep 17 00:00:00 2001 From: Simon G Date: Wed, 14 Apr 2021 10:12:05 +0200 Subject: [PATCH] - refactoring --- Lib.NotifyIcon/Windows/NotifyIcon.cs | 2 +- Mystify/App.axaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib.NotifyIcon/Windows/NotifyIcon.cs b/Lib.NotifyIcon/Windows/NotifyIcon.cs index 9a6cc75..a90c478 100644 --- a/Lib.NotifyIcon/Windows/NotifyIcon.cs +++ b/Lib.NotifyIcon/Windows/NotifyIcon.cs @@ -38,7 +38,7 @@ namespace Lib.NotifyIcon.Windows _helperWindow = new NotifyIconHelperWindow(this); } - ~NotifyIcon() => UpdateIcon(remove: true); + ~NotifyIcon() => UpdateIcon(true); /// /// Gets or sets the path for the notify icon diff --git a/Mystify/App.axaml.cs b/Mystify/App.axaml.cs index 8a2ffff..321f0ce 100644 --- a/Mystify/App.axaml.cs +++ b/Mystify/App.axaml.cs @@ -32,8 +32,8 @@ namespace Mystify _kernel = bootstrapper.BootstrapKernel(); MainModel mainModel = _kernel.Resolve(); - _mainWindow = new(); - _mainWindowViewModel = new (mainModel, _mainWindow); + _mainWindow = new MainWindow(); + _mainWindowViewModel = new MainWindowViewModel(mainModel, _mainWindow); _mainWindow.DataContext = _mainWindowViewModel; if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopStyleApplicationLifetime)