internal void OnDisable() { PlasticAssetsProcessor.UnRegisterViews(); if (PendingChangesTab != null) { PendingChangesTab.OnDisable(); } if (mIncomingChangesTab != null) { mIncomingChangesTab.OnDisable(); } if (ChangesetsTab != null) { ChangesetsTab.OnDisable(); } if (BranchesTab != null) { BranchesTab.OnDisable(); } if (HistoryTab != null) { HistoryTab.OnDisable(); } }
void CloseBranchesTab() { BoolSetting.Save(false, UnityConstants.SHOW_BRANCHES_VIEW_KEY_NAME); ShowView(mPreviousSelectedTab); mViewHost.RemoveRefreshableView( ViewType.BranchesView, BranchesTab); BranchesTab.OnDisable(); BranchesTab = null; mParentWindow.Repaint(); }