@@ -29,6 +29,7 @@ XData Menu
2929<MenuItem Name =" NewBranch" />
3030<MenuItem Name =" SwitchBranch" />
3131<MenuItem Separator =" true" />
32+ <MenuItem Name =" ExportSystemDefaults" />
3233<MenuItem Name =" Export" />
3334<MenuItem Name =" ExportForce" />
3435<MenuItem Name =" Import" />
@@ -125,6 +126,7 @@ Method LocalizeName(name As %String) As %String
125126 " Settings" :$$$Text(" @Settings@Settings" ),
126127 " Init" :$$$Text(" @Init@Initialize" ),
127128 " GitWebUI" :$$$Text(" @GitWebUI@Launch Git UI" ),
129+ " ExportSystemDefaults" :$$$Text(" @ExportSystemDefaults@Export System Default Settings" ),
128130 " Export" :$$$Text(" @Export@Export All" ),
129131 " ExportForce" :$$$Text(" @ExportForce@Export All (Force)" ),
130132 " Import" :$$$Text(" @Import@Import All" ),
@@ -160,6 +162,11 @@ Method OnSourceMenuItem(name As %String, ByRef Enabled As %String, ByRef Display
160162 quit ..OnSourceMenuContextItem (InternalName ,name ,.Enabled ,.DisplayName )
161163 }
162164
165+ if name = " ExportSystemDefaults" {
166+ set Enabled = ##class (%Library.EnsembleMgr ).IsEnsembleNamespace ()
167+ quit $$$OK
168+ }
169+
163170 if ##class (SourceControl.Git.Utils ).BasicMode () {
164171 set Enabled = $CASE (name ,
165172 " Status" : 1 ,
@@ -171,7 +178,6 @@ Method OnSourceMenuItem(name As %String, ByRef Enabled As %String, ByRef Display
171178 " Sync" : 1 ,
172179 " " : 1 ,
173180 :-1
174-
175181 )
176182 } else {
177183 set Enabled = $CASE (name ,
0 commit comments