void OnDisable() { EditorPrefs.SetBool("forceCheckoutPlasticSCM", processor.AssetModificationProcessor.ForceCheckout); AssetsProcessors.Disable(); if (mWkInfo != null) { MonoFileSystemWatcher.IsEnabled = false; WorkspaceFsNodeReaderCachesCleaner.CleanWorkspaceFsNodeReader(mWkInfo); } if (mException != null) { return; } if (mWkInfo == null) { ClosePlasticWindow(this); return; } mViewSwitcher.OnDisable(); ClosePlasticWindow(this); }
internal static void Dispose() { mIsInitialized = false; UnRegisterExceptionHandlers(); UnRegisterApplicationFocusHandlers(); if (sEventSenderScheduler != null) { sPingEventLoop.Stop(); sEventSenderScheduler.End(); } WorkspaceInfo wkInfo = FindWorkspace.InfoForApplicationPath( Application.dataPath, PlasticAPI); if (wkInfo == null) { return; } WorkspaceFsNodeReaderCachesCleaner.CleanWorkspaceFsNodeReader(wkInfo); }
void OnDisable() { AssetsProcessors.Disable(); if (mWkInfo != null) { MonoFileSystemWatcher.IsEnabled = false; WorkspaceFsNodeReaderCachesCleaner.CleanWorkspaceFsNodeReader(mWkInfo); } if (mException != null) { return; } if (mWkInfo == null) { ClosePlasticWindow(this); return; } mViewSwitcher.OnDisable(); ClosePlasticWindow(this); }
void OnDisable() { AssetsProcessors.Disable(); EditorApplication.update -= AutoCommitOperation.AutoCommit; if (mWkInfo != null) { WorkspaceFsNodeReaderCachesCleaner.CleanWorkspaceFsNodeReader(mWkInfo); } if (mException != null) { return; } if (mWkInfo == null) { ClosePlasticWindow(this); return; } mViewSwitcher.OnDisable(); ClosePlasticWindow(this); }
void OnDisable() { AssetsProcessors.Disable(); if (mWkInfo != null) { WorkspaceFsNodeReaderCachesCleaner.CleanWorkspaceFsNodeReader(mWkInfo); } if (mException != null) { return; } if (mWkInfo == null) { ClosePlasticWindow(this); return; } if (mViewSwitcher != null) { mViewSwitcher.OnDisable(); } ClosePlasticWindow(this); }