mirror of https://github.com/ppy/osu
Allow clicking notification to open screenshot folder
This commit is contained in:
parent
9e080028ff
commit
94847e4a23
|
@ -53,10 +53,7 @@ public bool OnPressed(GlobalAction action)
|
|||
return false;
|
||||
}
|
||||
|
||||
public bool OnReleased(GlobalAction action)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool OnReleased(GlobalAction action) => false;
|
||||
|
||||
public async void TakeScreenshotAsync()
|
||||
{
|
||||
|
@ -77,7 +74,15 @@ public async void TakeScreenshotAsync()
|
|||
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