1
0
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:
Dean Herbert 2018-03-22 20:44:00 +09:00
parent 9e080028ff
commit 94847e4a23

View File

@ -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;
}
});
}
}