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

DrawOpenFolderButton() private method

private DrawOpenFolderButton ( string dataPath ) : void
dataPath string
return void
        private void DrawOpenFolderButton(string dataPath)
        {
            bool validPath = SceneMainPanelUtility.ExistFile(dataPath);

            _colorStack.Push ((validPath) ? ColorPalette.SnapshotOpenButton_ON : ColorPalette.SnapshotOpenButton_OFF);
            if (GUILayout.Button (GetContent("Open Folder", TooltipSet.SCREENSHOT_OPEN_FOLDER_BUTTON_TOOLTIP), _column1)) {
                if (validPath) {
                    EditorUtility.RevealInFinder (dataPath);
                }
            }
            _colorStack.Pop ();
        }