mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
Always open exported file on completion
This commit is contained in:
parent
67036f59ce
commit
1d0a13c613
|
|
@ -236,9 +236,11 @@ namespace DiscordChatExporter.Gui.ViewModels
|
|||
// Export
|
||||
await _exportService.ExportAsync(format, filePath, log);
|
||||
|
||||
// Open
|
||||
Process.Start(filePath);
|
||||
|
||||
// Notify completion
|
||||
MessengerInstance.Send(new ShowNotificationMessage("Export complete",
|
||||
"OPEN", () => Process.Start(filePath)));
|
||||
MessengerInstance.Send(new ShowNotificationMessage("Export complete"));
|
||||
}
|
||||
catch (HttpErrorStatusCodeException ex) when (ex.StatusCode == HttpStatusCode.Forbidden)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue