Don't calculate macro when synth helper is collapsed

This commit is contained in:
Asriel Camora
2024-07-27 11:05:46 -07:00
parent 6dd45456a5
commit 339f26f119
4 changed files with 66 additions and 84 deletions
+3 -3
View File
@@ -529,7 +529,7 @@ public sealed unsafe class SynthHelper : Window, IDisposable
private void OnUseAction(ActionType action)
{
if (!IsCrafting)
if (!IsCrafting || !ShouldOpen || IsCollapsed)
return;
(_, CurrentState) = new SimNoRandom().Execute(GetCurrentState(), action);
@@ -539,7 +539,7 @@ public sealed unsafe class SynthHelper : Window, IDisposable
private void OnFinishedUsingAction()
{
if (!IsCrafting)
if (!IsCrafting || !ShouldOpen || IsCollapsed)
return;
CurrentState = GetCurrentState();
@@ -596,7 +596,7 @@ public sealed unsafe class SynthHelper : Window, IDisposable
private void OnStateUpdated()
{
if (!IsCrafting)
if (!IsCrafting || !ShouldOpen || IsCollapsed)
return;
Macro.Clear();