diff --git a/MECF.Framework.Common/MECF/Framework/Common/Fsm/ModuleFsmDevice.cs b/MECF.Framework.Common/MECF/Framework/Common/Fsm/ModuleFsmDevice.cs index 124c6ed..4b7b3c2 100644 --- a/MECF.Framework.Common/MECF/Framework/Common/Fsm/ModuleFsmDevice.cs +++ b/MECF.Framework.Common/MECF/Framework/Common/Fsm/ModuleFsmDevice.cs @@ -199,7 +199,9 @@ namespace MECF.Framework.Common.Fsm { if (_qRoutines != null) { - _qRoutines.Peek().Abort(); + if( _qRoutines.Count > 0) + _qRoutines.Peek().Abort(); + _qRoutines.Clear(); } } diff --git a/MECF.Framework.UI.Client/CenterViews/Editors/Recipe/RecipeEditorView.xaml b/MECF.Framework.UI.Client/CenterViews/Editors/Recipe/RecipeEditorView.xaml index f1f4206..56f2da8 100644 --- a/MECF.Framework.UI.Client/CenterViews/Editors/Recipe/RecipeEditorView.xaml +++ b/MECF.Framework.UI.Client/CenterViews/Editors/Recipe/RecipeEditorView.xaml @@ -836,9 +836,9 @@ + Grid.Row="1" + Margin="0,0,0,0" + IsEnabled="{Binding IsPermission}"> @@ -848,82 +848,79 @@ -