mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
Remove unused NotifyIcon field and its disposal on window close
This commit is contained in:
@@ -11,7 +11,6 @@ namespace DesktopMagic;
|
||||
|
||||
public partial class MainWindow : FluentWindow
|
||||
{
|
||||
private readonly System.Windows.Forms.NotifyIcon _notifyIcon = new();
|
||||
private readonly Manager _manager = Manager.Instance;
|
||||
private readonly MainWindowDataContext _mainWindowDataContext = new();
|
||||
|
||||
@@ -83,7 +82,6 @@ public partial class MainWindow : FluentWindow
|
||||
Visibility = Visibility.Collapsed;
|
||||
UpdateLayout();
|
||||
_manager.CloseAllPluginWindows();
|
||||
_notifyIcon.Dispose();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user