Exemplo n.º 1
0
        static void DoRefreshButton(
            bool isEnabled,
            MergeViewLogic mergeViewLogic)
        {
            GUI.enabled = isEnabled;

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

            GUI.enabled = true;
        }
Exemplo n.º 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;
        }