Fix nullref when flea back button is disabled
This commit is contained in:
@@ -327,7 +327,10 @@ public static class FleaPrevSearchPatches
|
|||||||
[PatchPostfix]
|
[PatchPostfix]
|
||||||
public static void Postfix(EViewListType type)
|
public static void Postfix(EViewListType type)
|
||||||
{
|
{
|
||||||
PreviousFilterButton.Instance?.gameObject.SetActive(type == EViewListType.AllOffers);
|
if (PreviousFilterButton.Instance != null)
|
||||||
|
{
|
||||||
|
PreviousFilterButton.Instance.gameObject.SetActive(type == EViewListType.AllOffers);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -369,7 +372,10 @@ public static class FleaPrevSearchPatches
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
PreviousFilterButton.Instance.OnOffersLoaded(__instance);
|
if (PreviousFilterButton.Instance != null)
|
||||||
|
{
|
||||||
|
PreviousFilterButton.Instance.OnOffersLoaded(__instance);
|
||||||
|
}
|
||||||
|
|
||||||
if (Settings.AutoExpandCategories.Value)
|
if (Settings.AutoExpandCategories.Value)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user