Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #5
0
        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);
        }