diff --git a/Craftimizer/Windows/RecipeNote.cs b/Craftimizer/Windows/RecipeNote.cs index 05d2089..b78bdb0 100644 --- a/Craftimizer/Windows/RecipeNote.cs +++ b/Craftimizer/Windows/RecipeNote.cs @@ -172,7 +172,7 @@ public sealed unsafe class RecipeNote : Window, IDisposable if (Service.Configuration.SuggestMacroAutomatically && SuggestedMacroTask?.Result == null && (SuggestedMacroTask?.Completed ?? true)) CalculateSuggestedMacro(); // If we don't want to suggest automatically, we should cancel and clean out the task - else + else if (!Service.Configuration.SuggestMacroAutomatically && SuggestedMacroTask?.Result == null) { SuggestedMacroTask?.Cancel(); SuggestedMacroTask = null; @@ -182,7 +182,7 @@ public sealed unsafe class RecipeNote : Window, IDisposable if (Service.Configuration.ShowCommunityMacros && Service.Configuration.SearchCommunityMacroAutomatically && CommunityMacroTask?.Result == null && (CommunityMacroTask?.Completed ?? true)) CalculateCommunityMacro(); // If we don't want to search automatically, we should cancel and clean out the task - else + else if (!Service.Configuration.SearchCommunityMacroAutomatically && CommunityMacroTask?.Result == null) { CommunityMacroTask?.Cancel(); CommunityMacroTask = null;