Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Dondain <vidondai@microsoft.com>2017-03-21 23:58:42 +0300
committerVincent Dondain <vidondai@microsoft.com>2017-03-21 23:58:46 +0300
commitc5512090e1eca5c5293f0441b62bf9a163956002 (patch)
treee8ad875411c943da3ac6ff0ded98d54d868001a1 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects
parentb421d28e60561a94813ede1a30bf00d6e7f35909 (diff)
[NewProjectDialog] Remove unused CreateProjectSubDirectoryInExistingSolutionPropertyName
This code isn't used anymore since we don't let users select "Create a project directory within the solution directory" when they're not creating a new solution.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectController.cs22
1 files changed, 2 insertions, 20 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectController.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectController.cs
index f67caeeaed..e48acca686 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectController.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectController.cs
@@ -58,7 +58,6 @@ namespace MonoDevelop.Ide.Projects
const string UseGitPropertyName = "Dialogs.NewProjectDialog.UseGit";
const string CreateGitIgnoreFilePropertyName = "Dialogs.NewProjectDialog.CreateGitIgnoreFile";
const string CreateProjectSubDirectoryPropertyName = "MonoDevelop.Core.Gui.Dialogs.NewProjectDialog.AutoCreateProjectSubdir";
- const string CreateProjectSubDirectoryInExistingSolutionPropertyName = "Dialogs.NewProjectDialog.AutoCreateProjectSubdirInExistingSolution";
const string NewSolutionLastSelectedCategoryPropertyName = "Dialogs.NewProjectDialog.LastSelectedCategoryPath";
const string NewSolutionLastSelectedTemplatePropertyName = "Dialogs.NewProjectDialog.LastSelectedTemplate";
const string NewProjectLastSelectedCategoryPropertyName = "Dialogs.NewProjectDialog.AddNewProjectLastSelectedCategoryPath";
@@ -194,21 +193,13 @@ namespace MonoDevelop.Ide.Projects
SetDefaultLocation ();
SetDefaultGitSettings ();
SelectedLanguage = PropertyService.Get (SelectedLanguagePropertyName, "C#");
- projectConfiguration.CreateProjectDirectoryInsideSolutionDirectory = GetDefaultCreateProjectDirectorySetting ();
- }
-
- bool GetDefaultCreateProjectDirectorySetting ()
- {
- if (IsNewSolution) {
- return PropertyService.Get (CreateProjectSubDirectoryPropertyName, true);
- }
- return PropertyService.Get (CreateProjectSubDirectoryInExistingSolutionPropertyName, true);
+ projectConfiguration.CreateProjectDirectoryInsideSolutionDirectory = PropertyService.Get (CreateProjectSubDirectoryPropertyName, true);
}
void UpdateDefaultSettings ()
{
UpdateDefaultGitSettings ();
- UpdateDefaultCreateProjectDirectorySetting ();
+ PropertyService.Set (CreateProjectSubDirectoryPropertyName, projectConfiguration.CreateProjectDirectoryInsideSolutionDirectory);
PropertyService.Set (SelectedLanguagePropertyName, GetLanguageForTemplateProcessing ());
DefaultSelectedCategoryPath = GetSelectedCategoryPath ();
DefaultSelectedTemplate = GetDefaultSelectedTemplateId ();
@@ -256,15 +247,6 @@ namespace MonoDevelop.Ide.Projects
return null;
}
- void UpdateDefaultCreateProjectDirectorySetting ()
- {
- if (IsNewSolution) {
- PropertyService.Set (CreateProjectSubDirectoryPropertyName, projectConfiguration.CreateProjectDirectoryInsideSolutionDirectory);
- } else {
- PropertyService.Set (CreateProjectSubDirectoryInExistingSolutionPropertyName, projectConfiguration.CreateProjectDirectoryInsideSolutionDirectory);
- }
- }
-
void SetDefaultLocation ()
{
if (BasePath == null)