diff options
author | Ungureanu Marius <teromario@yahoo.com> | 2013-12-07 14:26:15 +0400 |
---|---|---|
committer | Ungureanu Marius <teromario@yahoo.com> | 2013-12-07 14:26:15 +0400 |
commit | d7d661ff54e013e86c543f0d81c1379ae2d251d6 (patch) | |
tree | d4e206d669d25c6aab265f81c7a09091a07551fb /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs | |
parent | d1e1165dfd54d087131ac065fc4967b9dbba10ed (diff) |
Simplify Update for SaveAll
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs index 16096b39b1..731e37cfa5 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs @@ -122,11 +122,7 @@ namespace MonoDevelop.Ide.Commands protected override void Update (CommandInfo info) { - bool hasdirty = false; - for(int i = 0; i < IdeApp.Workbench.Documents.Count; i++) { - hasdirty |= IdeApp.Workbench.Documents [i].IsDirty; - } - info.Enabled = hasdirty; + info.Enabled = IdeApp.Workbench.Documents.Any (v => v.IsDirty); } } //MonoDevelop.Ide.Commands.FileCommands.NewProject |