Example #1
0
        static void DoRefreshButton(
            bool isEnabled,
            MergeViewLogic mergeViewLogic)
        {
            GUI.enabled = isEnabled;

            if (GUILayout.Button(new GUIContent(
                                     Images.GetRefreshIcon())))
            {
                mergeViewLogic.Refresh();
            }

            GUI.enabled = true;
        }
Example #2
0
        static void DoRefreshButton(
            bool isEnabled,
            PlasticGUIClient plasticClient,
            MergeViewLogic mergeViewLogic)
        {
            GUI.enabled = isEnabled;

            if (GUILayout.Button(new GUIContent(
                                     Images.GetRefreshIcon()), EditorStyles.toolbarButton))
            {
                mergeViewLogic.Refresh();
            }

            GUI.enabled = true;
        }