[longomatch] Disable the "Edit properties" option when the menu has >1 events



commit ea8cb0a3722cf741f656200b37f55a8a9d2b8320
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Dec 11 16:32:16 2014 +0100

    Disable the "Edit properties" option when the menu has >1 events

 LongoMatch.GUI/Gui/Menu/PlaysMenu.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Menu/PlaysMenu.cs b/LongoMatch.GUI/Gui/Menu/PlaysMenu.cs
index 542201b..9230ec6 100644
--- a/LongoMatch.GUI/Gui/Menu/PlaysMenu.cs
+++ b/LongoMatch.GUI/Gui/Menu/PlaysMenu.cs
@@ -88,7 +88,7 @@ namespace LongoMatch.Gui.Menus
                                snapshot.Visible = moveCat.Visible = drawings.Visible =
                                        addPLN.Visible = render.Visible = duplicate.Visible = false;
                        } else {
-                               edit.Visible = editableName;
+                               edit.Visible = editableName && plays.Count == 1;
                                snapshot.Visible = plays.Count == 1;
                                moveCat.Visible = plays.Count == 1 && eventTypes != null;
                                drawings.Visible = plays.Count == 1 && plays [0].Drawings.Count > 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]