diff options
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/DefaultSourceEditorOptions.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/DefaultSourceEditorOptions.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/DefaultSourceEditorOptions.cs index 165949e0ce..218d7e96b2 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/DefaultSourceEditorOptions.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/DefaultSourceEditorOptions.cs @@ -399,18 +399,22 @@ namespace MonoDevelop.Ide.Editor } } - ConfigurationProperty<bool> enableNewEditor = ConfigurationProperty.Create ("EnableNewEditor", false); + ConfigurationProperty<bool> preferLegacyEditor = ConfigurationProperty.Create ("PreferLegacyEditor", false); public bool EnableNewEditor { + // NOTE: as we're making this editor the default, we've switched to a new configuration property, + // and we'll simply flip the value that we're getting from that. The code below might be a bit convoluted, + // but it means we don't have additional changes get { - return enableNewEditor; + return !preferLegacyEditor; } set { - if (!enableNewEditor.Set (value)) + value = !value; //see notes above + if (!preferLegacyEditor.Set (value)) return; string messageText; - if (value) { + if (!value) { messageText = GettextCatalog.GetString ( "The New Editor Preview has been enabled, but already opened files " + "will need to be closed and re-opened for the change to take effect."); |