From 5c3cade2ff995896b320a8bf657418773fc4c3b8 Mon Sep 17 00:00:00 2001 From: Scrub <72096833+ScrubN@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:49:54 -0400 Subject: [PATCH] Add `DEBUG` to WPF title when compiled in debug mode (#1088) --- TwitchDownloaderWPF/MainWindow.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TwitchDownloaderWPF/MainWindow.xaml.cs b/TwitchDownloaderWPF/MainWindow.xaml.cs index cd2fab8d..7f6b754c 100644 --- a/TwitchDownloaderWPF/MainWindow.xaml.cs +++ b/TwitchDownloaderWPF/MainWindow.xaml.cs @@ -89,7 +89,11 @@ private async void Window_Loaded(object sender, RoutedEventArgs e) FlashTaskbarIconIfNotForeground(TimeSpan.FromSeconds(3)); var currentVersion = Version.Parse("1.54.3"); +#if DEBUG + Title = $"Twitch Downloader v{currentVersion} - DEBUG"; +#else Title = $"Twitch Downloader v{currentVersion}"; +#endif // TODO: extract FFmpeg handling to a dedicated service if (!File.Exists("ffmpeg.exe"))