Skip to content

Commit

Permalink
Fix prepare panel when canceled process in-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
krzychu124 committed Nov 20, 2022
1 parent 8eb4641 commit 5dffed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BrokenNodeDetector/UI/MainPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ private void OnPrepareFinished(IDetector detector) {

private void OnResultsClose(bool updateHeight = false) {
_returnButton.Hide();
_preparePanel.CancelPrepare();
_preparePanel.Hide();
RunFadeInOutAnimations(_resultsPanel, _detectorsPanel);
if (BndResultHighlightManager.instance) {
BndResultHighlightManager.instance.enabled = false;
Expand Down
1 change: 1 addition & 0 deletions BrokenNodeDetector/UI/PreparePanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public override void OnDestroy() {
public void CancelPrepare() {
if (_preparing && _prepareCoroutine != null) {
StopCoroutine(_prepareCoroutine);
_preparing = false;
}
}

Expand Down

0 comments on commit 5dffed7

Please sign in to comment.