Another issue but with upload panel

This commit is contained in:
2026-01-22 22:56:29 -07:00
parent 333e1e0a35
commit 127b03c2be

View File

@@ -1,3 +1,4 @@
using SimpleFileBrowser;
using TMPro;
using UnityEngine;
using UnityEngine.InputSystem;
@@ -76,6 +77,7 @@ public class IconMarketplaceManager : MonoBehaviour
if (Keyboard.current.escapeKey.wasPressedThisFrame)
{
if (downloadPanelScript.optionsPanel.activeSelf) downloadPanelScript.optionsPanelSubmitButton.onClick.Invoke();
else if (uploadPanel.activeSelf && FileBrowser.IsOpen) return;
else if (downloadPanel.activeSelf || uploadPanel.activeSelf) SwitchPanel(0);
else await SceneManager.LoadSceneAsync("MainMenu");
}