[mapguide-commits] r5725 - trunk/Tools/Maestro/Maestro.Base

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Apr 28 08:26:15 EDT 2011


Author: jng
Date: 2011-04-28 05:26:15 -0700 (Thu, 28 Apr 2011)
New Revision: 5725

Modified:
   trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin
Log:
#1673: Change the condition of Save Resource command. This makes the command invokable even on non-dirty open resources, thus freeing the need to properly notify dirty state to enable this command (properly notifying dirty state is still important, but failing to notify should not impede the ability to save)


Modified: trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin	2011-04-28 12:09:53 UTC (rev 5724)
+++ trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin	2011-04-28 12:26:15 UTC (rev 5725)
@@ -92,7 +92,7 @@
             </Condition>
             <MenuItem type="Separator" />
             <Condition action="Disable" name="EditorFunction">
-                <Condition action="Disable" name="EditorFunction" property="CanSave">
+                <Condition action="Disable" name="HasDocuments">
                     <MenuItem id="Save"
                               icon="disk"
                               label="${res:Menu_File_SaveResource}"
@@ -310,7 +310,7 @@
             <ToolbarItem type="Separator" />
         </Condition>
         <Condition action="Disable" name="EditorFunction">
-            <Condition action="Disable" name="EditorFunction" property="CanSave">
+            <Condition action="Disable" name="HasDocuments">
                 <ToolbarItem id="Save"
                              icon="disk"
                              tooltip="${res:Menu_File_SaveResource}"



More information about the mapguide-commits mailing list