diff --git a/FreePIE.GUI/Views/Script/Output/ErrorViewModel.cs b/FreePIE.GUI/Views/Script/Output/ErrorViewModel.cs index fb7e2265..25d3d622 100644 --- a/FreePIE.GUI/Views/Script/Output/ErrorViewModel.cs +++ b/FreePIE.GUI/Views/Script/Output/ErrorViewModel.cs @@ -1,11 +1,12 @@ using System; using FreePIE.Core.Common.Events; using FreePIE.Core.Model.Events; +using FreePIE.GUI.Events; using FreePIE.GUI.Views.Main; namespace FreePIE.GUI.Views.Script.Output { - public class ErrorViewModel : PanelViewModel, IHandle + public class ErrorViewModel : PanelViewModel, IHandle, IHandle { public ErrorViewModel(IEventAggregator eventAggregator) { @@ -44,5 +45,13 @@ public void Handle(ScriptErrorEvent message) IsActive = true; } + + public void Handle(ScriptStateChangedEvent message) + { + if (message.Running) + { + Text = null; + } + } } }