1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:13:21 +08:00

Fix progress notifications no longer blocking close on click

This commit is contained in:
Salman Ahmed 2022-09-21 00:15:45 +03:00
parent 8b918d29fc
commit dcfb6a2f06

View File

@ -229,8 +229,8 @@ namespace osu.Game.Overlays.Notifications
protected override bool OnClick(ClickEvent e) protected override bool OnClick(ClickEvent e)
{ {
// Clicking with anything but left button should dismiss but not perform the activation action. // Clicking with anything but left button should dismiss but not perform the activation action.
if (e.Button == MouseButton.Left) if (e.Button == MouseButton.Left && Activated?.Invoke() == false)
Activated?.Invoke(); return true;
Close(false); Close(false);
return true; return true;