Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Enable search box again after performing a search.
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiDev committed Jun 21, 2022
1 parent b0fa876 commit 8c25ae0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ReModCE/Components/AvatarFavoritesComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ public override void OnUiManagerInitEarly()
(Action<string>)PromptChooseSearch);

_avatarScreen = VRCUiManagerEx.Instance.GetScreen(QuickMenu.MainMenuScreenIndex.AvatarMenu).gameObject;

_avatarScreen.AddComponent<EnableDisableListener>().OnEnableEvent += () =>
{
if (AvatarSearchEnabled)
Expand Down Expand Up @@ -353,6 +352,8 @@ private void SearchAvatars(string searchTerm)

_httpClient.SendAsync(request).ContinueWith(rsp =>
{
MelonCoroutines.Start(EnableSearchDelayed());

var searchResponse = rsp.Result;
if (!searchResponse.IsSuccessStatusCode)
{
Expand Down

0 comments on commit 8c25ae0

Please sign in to comment.