Пример #1
0
 private void OnUserLoginStateChange(bool userInfoReady, bool loggedIn)
 {
     if (m_PackageFiltering.currentFilterTab == PackageFilterTab.AssetStore && UpdateListVisibility())
     {
         m_PageManager.UpdateSelectionIfCurrentSelectionIsInvalid();
     }
 }
Пример #2
0
        public void OnVisualStateChange(IEnumerable <VisualState> visualStates)
        {
            if (!visualStates.Any())
            {
                return;
            }

            foreach (var state in visualStates)
            {
                GetPackageItem(state.packageUniqueId)?.UpdateVisualState(state);
            }

            if (m_PageManager.UpdateSelectionIfCurrentSelectionIsInvalid())
            {
                ScrollToSelection();
            }
        }
        public void OnVisualStateChange(IEnumerable <VisualState> visualStates)
        {
            if (!visualStates.Any())
            {
                return;
            }

            foreach (var state in visualStates)
            {
                GetPackageItem(state.packageUniqueId)?.UpdateVisualState(state);
            }

            ReorderGroups();
            foreach (var group in packageGroups)
            {
                group.RefreshHeaderVisibility();
            }

            if (m_PageManager.UpdateSelectionIfCurrentSelectionIsInvalid())
            {
                ScrollToSelection();
            }
        }