-using System;
-using System.Linq;
+using System.Linq;
using MonoDevelop.Components.Commands;
using MonoDevelop.Ide;
using MonoDevelop.Projects;
MessageService.ShowCustomDialog (dlg);
}
}
+
+ protected override void Update (CommandInfo info)
+ {
+ var proj = IdeApp.Workspace.GetAllProjects ().FirstOrDefault ();
+ if (proj != null) {
+ info.Enabled = true;
+ info.Visible = true;
+ } else {
+ info.Enabled = false;
+ info.Visible = true;
+ }
+ }
}
}