Skip to content

Commit d6df28a

Browse files
committed
Fix field reference
1 parent faf79fd commit d6df28a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/WinUIEx/TrayIcon.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private void AddToTray(uint iconId)
328328
}
329329
}
330330

331-
private uint CreateIconData(HICON hicon, string? tooltip, uint callbackId, out __ushort_128 tip)
331+
private static uint CreateIconData(HICON hicon, string? tooltip, uint callbackId, out __ushort_128 tip)
332332
{
333333
const uint NIF_MESSAGE = 0x00000001;
334334
const uint NIF_ICON = 0x00000002;
@@ -340,11 +340,11 @@ private uint CreateIconData(HICON hicon, string? tooltip, uint callbackId, out _
340340
tip = new __ushort_128();
341341
if (!string.IsNullOrEmpty(tooltip))
342342
{
343-
if (!string.IsNullOrEmpty(_tooltip))
343+
if (!string.IsNullOrEmpty(tooltip))
344344
{
345-
for (int i = 0; i < 128 && i < _tooltip.Length; i++)
345+
for (int i = 0; i < 128 && i < tooltip.Length; i++)
346346
{
347-
tip[i] = (ushort)_tooltip[i];
347+
tip[i] = (ushort)tooltip[i];
348348
}
349349
}
350350
flags = flags | NIF_TIP | NIF_SHOWTIP;

0 commit comments

Comments
 (0)