Skip to content

Commit

Permalink
Add DEBUG to WPF title when compiled in debug mode (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN authored Jun 6, 2024
1 parent 961e542 commit 5c3cade
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TwitchDownloaderWPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 5c3cade

Please sign in to comment.