in Source/Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/AppCenterEditorSDKTools.cs [106:157]
private static void ShowSdkInstallationPanel()
{
sdkFolderNotFound = SdkFolder == null;
if (_previousSdkFolderPath != SdkFolder)
{
// something changed, better save the result.
_previousSdkFolderPath = SdkFolder;
AppCenterEditorPrefsSO.Instance.SdkPath = (AssetDatabase.GetAssetPath(SdkFolder));
//TODO: check if we need this?
// AppCenterEditorDataService.SaveEnvDetails();
sdkFolderNotFound = false;
}
SDKState SDKstate = GetSDKState();
using (new AppCenterGuiFieldHelper.UnityVertical(AppCenterEditorHelper.uiStyle.GetStyle("gpStyleGray1")))
{
switch (SDKstate)
{
case SDKState.SDKNotInstalled:
ShowNOSDKLabel();
ShowInstallButton();
break;
case SDKState.SDKNotInstalledAndInstalling:
ShowNOSDKLabel();
ShowInstallingButton();
break;
case SDKState.SDKNotFull:
ShowSdkInstalledLabel();
ShowFolderObject();
ShowInstallButton();
ShowRemoveButton();
break;
case SDKState.SDKNotFullAndInstalling:
ShowSdkInstalledLabel();
ShowFolderObject();
ShowInstallingButton();
ShowRemoveButton();
break;
case SDKState.SDKIsFull:
ShowSdkInstalledLabel();
ShowFolderObject();
ShowRemoveButton();
break;
}
}
}