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)