Skip to content

Commit

Permalink
update: use Padding.Empty
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Aug 16, 2024
1 parent 205ee47 commit 8e0e2cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NotifyIcon/NotifyIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public class NotifyIcon
private static readonly object EVENT_BALLOONTIPCLOSED = new();
private static readonly object EVENT_DISPOSED = new();

public NotifyIcon() : this(null!)
{
}

public NotifyIcon(ToolStripRenderer toolStripRenderer = null!)
{
this.toolStripRenderer = toolStripRenderer ?? new ModernToolStripRenderer();
Expand Down Expand Up @@ -358,7 +362,7 @@ static void UpdatePadding(ToolStripItemCollection items)
}
else
{
item.Margin = new Padding(0, 0, 0, 0);
item.Margin = Padding.Empty;
}
}
}
Expand Down

0 comments on commit 8e0e2cd

Please sign in to comment.