mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 19:32:55 +08:00
Allow clicking notification to open screenshot folder
This commit is contained in:
parent
9e080028ff
commit
94847e4a23
@ -53,10 +53,7 @@ namespace osu.Game.Graphics
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool OnReleased(GlobalAction action)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool OnReleased(GlobalAction action) => false;
|
||||
|
||||
public async void TakeScreenshotAsync()
|
||||
{
|
||||
@ -77,7 +74,15 @@ namespace osu.Game.Graphics
|
||||
throw new ArgumentOutOfRangeException(nameof(screenshotFormat));
|
||||
}
|
||||
|
||||
notificationOverlay.Post(new SimpleNotification { Text = $"{fileName} saved" });
|
||||
notificationOverlay.Post(new SimpleNotification
|
||||
{
|
||||
Text = $"{fileName} saved!",
|
||||
Activated = () =>
|
||||
{
|
||||
storage.OpenInNativeExplorer();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user