clean up code
Pull request / build (pull_request) Successful in 36s

This commit is contained in:
2026-08-12 18:25:28 +05:00
parent 87266e6c13
commit 646d7edc0c
6 changed files with 10 additions and 20 deletions
@@ -29,7 +29,6 @@ internal static class TrayIconNative
internal const int ContextMenuNotification = 0x007B;
private const int NIM_ADD = 0x00000000;
private const int NIM_MODIFY = 0x00000001;
private const int NIM_DELETE = 0x00000002;
private const int NIM_SETVERSION = 0x00000004;
@@ -72,13 +71,6 @@ internal static class TrayIconNative
return true;
}
/// <summary>Replaces the image and the tooltip of an icon already there.</summary>
internal static bool Modify(IntPtr window, int id, IntPtr icon, string tooltip)
{
NotifyIconData data = Describe(window, id, icon, tooltip);
return Shell_NotifyIcon(NIM_MODIFY, ref data);
}
/// <summary>Takes the icon away. A forgotten icon stays in the tray until hovered.</summary>
internal static void Remove(IntPtr window, int id)
{