Skip to content

Commit

Permalink
Current context issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillemsc committed Mar 27, 2022
1 parent 7fd5204 commit 4bd0b2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Runtime/Ui/ViewStack/Instructions/HideInstruction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ private void HandlePopup(IViewContext context)

if (!pupupFound)
{
UnityEngine.Debug.LogError($"Tried to Hide {entryId} as Popup, " +
$"but it was not showing on the first place, at {nameof(HideInstruction)}");
return;
}

Expand All @@ -90,7 +88,10 @@ private void HandlePopup(IViewContext context)

private Task HandleNonPopup(IViewContext context, CancellationToken cancellationToken)
{
currentContextRepository.Clear();
if (context.ViewId == entryId)
{
currentContextRepository.Clear();
}

List<Task> hideTasks = new List<Task>();

Expand Down

0 comments on commit 4bd0b2f

Please sign in to comment.