From b6844824696e8654407e0e6511556fd278f0dad8 Mon Sep 17 00:00:00 2001 From: Lena Date: Sun, 21 Jul 2024 13:16:49 +0200 Subject: [PATCH] only use the small icon for the notification tray --- .../Platform/Windows/WindowsNotificationTrayIcon.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/osu.Framework/Platform/Windows/WindowsNotificationTrayIcon.cs b/osu.Framework/Platform/Windows/WindowsNotificationTrayIcon.cs index eb13684068..50450d1895 100644 --- a/osu.Framework/Platform/Windows/WindowsNotificationTrayIcon.cs +++ b/osu.Framework/Platform/Windows/WindowsNotificationTrayIcon.cs @@ -37,11 +37,7 @@ 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; } @@ -49,11 +45,7 @@ internal WindowsNotificationTrayIcon(string text, Action? onClick, IWindow win) 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; }