From 6aee14b722940172a39e0309bf0c2747a2dfd915 Mon Sep 17 00:00:00 2001 From: Ziga Grcar Date: Sun, 23 Aug 2020 19:28:08 +0200 Subject: [PATCH] Added default filename to saveFileDialog --- TwitchDownloaderWPF/PageClipDownload.xaml.cs | 1 + TwitchDownloaderWPF/PageVodDownload.xaml.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/TwitchDownloaderWPF/PageClipDownload.xaml.cs b/TwitchDownloaderWPF/PageClipDownload.xaml.cs index de4c7156..acbb78ab 100644 --- a/TwitchDownloaderWPF/PageClipDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageClipDownload.xaml.cs @@ -117,6 +117,7 @@ private async void btnDownload_Click(object sender, RoutedEventArgs e) saveFileDialog.Filter = "MP4 Files | *.mp4"; saveFileDialog.RestoreDirectory = true; + saveFileDialog.FileName = textStreamer.Text + " - " + textTitle.Text; if (saveFileDialog.ShowDialog() == true) { diff --git a/TwitchDownloaderWPF/PageVodDownload.xaml.cs b/TwitchDownloaderWPF/PageVodDownload.xaml.cs index 365324f0..8126c807 100644 --- a/TwitchDownloaderWPF/PageVodDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageVodDownload.xaml.cs @@ -146,6 +146,7 @@ private async void btnDownload_Click(object sender, RoutedEventArgs e) saveFileDialog.Filter = "MP4 Files | *.mp4"; saveFileDialog.RestoreDirectory = true; + saveFileDialog.FileName = textStreamer.Text + " - " + textTitle.Text; if (saveFileDialog.ShowDialog() == true) {