Skip to content

Commit

Permalink
Clean code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MKKNinetyTwo authored Nov 14, 2024
1 parent bc158a5 commit a9f44cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RetroBar/Utilities/WindowManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class WindowManager : IDisposable
private readonly ShellManager _shellManager;
private readonly Updater _updater;

private readonly ExplorerMonitor _explorerMonitor = new ExplorerMonitor();
private readonly ExplorerMonitor _explorerMonitor = new();

public WindowManager(ShellManager shellManager, StartMenuMonitor startMenuMonitor, Updater updater)
{
Expand Down Expand Up @@ -187,7 +187,7 @@ private void resetScreenCache()

public void Dispose()
{
if (_explorerMonitor != null){_explorerMonitor?.Dispose();}
_explorerMonitor?.Dispose();
_shellManager.ExplorerHelper.HideExplorerTaskbar = false;
Settings.Instance.PropertyChanged -= Settings_PropertyChanged;
}
Expand Down

0 comments on commit a9f44cd

Please sign in to comment.