- refactoring

master
Simon G 5 years ago
parent 66398ad4a4
commit 65763bcbb5
  1. 2
      Lib.NotifyIcon/Windows/NotifyIcon.cs
  2. 4
      Mystify/App.axaml.cs

@ -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)

Loading…
Cancel
Save