mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-17 00:24:23 -04:00
Always open exported file on completion
This commit is contained in:
parent
67036f59ce
commit
1d0a13c613
1 changed files with 4 additions and 2 deletions
|
@ -236,9 +236,11 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||||
// Export
|
// Export
|
||||||
await _exportService.ExportAsync(format, filePath, log);
|
await _exportService.ExportAsync(format, filePath, log);
|
||||||
|
|
||||||
|
// Open
|
||||||
|
Process.Start(filePath);
|
||||||
|
|
||||||
// Notify completion
|
// Notify completion
|
||||||
MessengerInstance.Send(new ShowNotificationMessage("Export complete",
|
MessengerInstance.Send(new ShowNotificationMessage("Export complete"));
|
||||||
"OPEN", () => Process.Start(filePath)));
|
|
||||||
}
|
}
|
||||||
catch (HttpErrorStatusCodeException ex) when (ex.StatusCode == HttpStatusCode.Forbidden)
|
catch (HttpErrorStatusCodeException ex) when (ex.StatusCode == HttpStatusCode.Forbidden)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue