@ -38,7 +38,7 @@ namespace Lib.NotifyIcon.Windows
_helperWindow = new NotifyIconHelperWindow(this);
}
~NotifyIcon() => UpdateIcon(remove: true);
~NotifyIcon() => UpdateIcon(true);
/// <summary>
/// Gets or sets the path for the notify icon
@ -32,8 +32,8 @@ namespace Mystify
_kernel = bootstrapper.BootstrapKernel();
MainModel mainModel = _kernel.Resolve<MainModel>();
_mainWindow = new();
_mainWindowViewModel = new (mainModel, _mainWindow);
_mainWindow = new MainWindow();
_mainWindowViewModel = new MainWindowViewModel(mainModel, _mainWindow);
_mainWindow.DataContext = _mainWindowViewModel;
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopStyleApplicationLifetime)