TuxedoBerries.ScenePanel.Drawers.ScreenshotDrawer.DeleteAllGeneralScreenshots C# (CSharp) Method

DeleteAllGeneralScreenshots() private method

private DeleteAllGeneralScreenshots ( ) : void
return void
        private void DeleteAllGeneralScreenshots()
        {
            _history.AutoSave = false;
            while (_history.Count > 0) {
                var screenshot = _history.Pop ();
                SceneMainPanelUtility.DeleteFileIfExist (screenshot);
            }
            _history.Clear ();
            _textureDatabase.Clear ();
            _history.AutoSave = true;
            _history.Save ();
        }