Skip to content

Commit

Permalink
only use the small icon for the notification tray
Browse files Browse the repository at this point in the history
  • Loading branch information
adryzz committed Jul 21, 2024
1 parent d5de496 commit b684482
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions osu.Framework/Platform/Windows/WindowsNotificationTrayIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,15 @@ internal WindowsNotificationTrayIcon(string text, Action? onClick, IWindow win)
if (window is SDL3WindowsWindow w3)
{
hwnd = w3.WindowHandle;
if (w3.largeIcon is not null)
{
iconHandle = w3.largeIcon.Handle;
}
else if (w3.smallIcon is not null)
if (w3.smallIcon is not null)
{
iconHandle = w3.smallIcon.Handle;
}
}
else if (window is SDL2WindowsWindow w2)
{
hwnd = w2.WindowHandle;
if (w2.largeIcon is not null)
{
iconHandle = w2.largeIcon.Handle;
}
else if (w2.smallIcon is not null)
if (w2.smallIcon is not null)
{
iconHandle = w2.smallIcon.Handle;
}
Expand Down

0 comments on commit b684482

Please sign in to comment.