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
1 changed files with 10 additions and 5 deletions

View File

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