mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 00:46:12 +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
|
public partial class MainWindow : FluentWindow
|
||||||
{
|
{
|
||||||
private readonly System.Windows.Forms.NotifyIcon _notifyIcon = new();
|
|
||||||
private readonly Manager _manager = Manager.Instance;
|
private readonly Manager _manager = Manager.Instance;
|
||||||
private readonly MainWindowDataContext _mainWindowDataContext = new();
|
private readonly MainWindowDataContext _mainWindowDataContext = new();
|
||||||
|
|
||||||
@@ -83,7 +82,6 @@ public partial class MainWindow : FluentWindow
|
|||||||
Visibility = Visibility.Collapsed;
|
Visibility = Visibility.Collapsed;
|
||||||
UpdateLayout();
|
UpdateLayout();
|
||||||
_manager.CloseAllPluginWindows();
|
_manager.CloseAllPluginWindows();
|
||||||
_notifyIcon.Dispose();
|
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user