From 28c271c714c338e4e79ef019f83326fb1b6aa86d Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Fri, 22 Mar 2024 23:27:48 -0700 Subject: [PATCH] Fix odd flip-flop behavior --- Craftimizer/Windows/RecipeNote.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;