private void stopTimelineIfPlaying()
 {
     if (timelineController.Playing)
     {
         timelineController.stopPlayback(false);
     }
 }
예제 #2
0
        public void shutdownContext(AnomalousMvcContext context, bool removeContext, bool resumePreviousContext)
        {
            timelineController.stopPlayback(false);
            if (removeContext)
            {
                context.shutdown();
                contextManager.removeContext(context);
            }

            RocketWidgetInterface.clearAllCaches();
            RocketInterface.Instance.SystemInterface.RemoveRootPath(context.ResourceProvider.BackingLocation);

            if (resumePreviousContext)
            {
                AnomalousMvcContext nextContext = contextManager.CurrentContext;
                if (nextContext != null)
                {
                    setupContextToRun(nextContext);
                    nextContext.resume();
                }
            }
        }