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:
parent
8b918d29fc
commit
dcfb6a2f06
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user