diff --git a/Livestream.Monitor/Model/StreamLauncher.cs b/Livestream.Monitor/Model/StreamLauncher.cs index 9899b38..740eef9 100644 --- a/Livestream.Monitor/Model/StreamLauncher.cs +++ b/Livestream.Monitor/Model/StreamLauncher.cs @@ -156,7 +156,7 @@ private void StartLivestreamer(string livestreamerArgs, string streamQuality, Me EnableRaisingEvents = true }; - bool preventClose = string.IsNullOrEmpty(streamQuality); + bool preventClose = false; // see below for output handler proc.ErrorDataReceived += @@ -209,6 +209,13 @@ private void StartLivestreamer(string livestreamerArgs, string streamQuality, Me // open the message box if it was somehow closed prior to the error being displayed if (!messageBoxViewModel.IsActive) windowManager.ShowWindow(messageBoxViewModel, null, new WindowSettingsBuilder().SizeToContent().NoResizeBorderless().Create()); } + else if (string.IsNullOrEmpty(streamQuality)) + { + messageBoxViewModel.MessageText += Environment.NewLine + Environment.NewLine + + "No stream quality provided: Manually close this window when you've finished reading the livestreamer output."; + + if (!messageBoxViewModel.IsActive) windowManager.ShowWindow(messageBoxViewModel, null, new WindowSettingsBuilder().SizeToContent().NoResizeBorderless().Create()); + } else messageBoxViewModel.TryClose(); });