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