mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Fix progress notifications no longer blocking close on click
This commit is contained in:
parent
8b918d29fc
commit
dcfb6a2f06
@ -229,8 +229,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
// Clicking with anything but left button should dismiss but not perform the activation action.
|
||||
if (e.Button == MouseButton.Left)
|
||||
Activated?.Invoke();
|
||||
if (e.Button == MouseButton.Left && Activated?.Invoke() == false)
|
||||
return true;
|
||||
|
||||
Close(false);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user