From 30c6568fdcb980e8704f992093f419c5ea624d44 Mon Sep 17 00:00:00 2001 From: Manas Kalangan Date: Tue, 14 May 2024 13:35:40 +0530 Subject: [PATCH] Env Application name is changed after Target Application name is changed --- .../SolutionWindows/TargetApplicationsPage.xaml.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Ginger/Ginger/SolutionWindows/TargetApplicationsPage.xaml.cs b/Ginger/Ginger/SolutionWindows/TargetApplicationsPage.xaml.cs index dbed5e6c76..49d3b69fe3 100644 --- a/Ginger/Ginger/SolutionWindows/TargetApplicationsPage.xaml.cs +++ b/Ginger/Ginger/SolutionWindows/TargetApplicationsPage.xaml.cs @@ -23,6 +23,7 @@ limitations under the License. using Ginger.UserControls; using Ginger.UserControlsLib; using GingerCore; +using GingerCore.Environments; using GingerCore.Platforms; using GingerCoreNET.SolutionRepositoryLib.RepositoryObjectsLib.PlatformsLib; using System.Collections.Generic; @@ -224,6 +225,19 @@ private void UpdateApplicationNameChangeInSolution(ApplicationPlatform app) } } + foreach(ProjEnvironment projEnv in WorkSpace.Instance.SolutionRepository.GetAllRepositoryItems()) + { + foreach (EnvApplication envApplication in projEnv.Applications) + { + + if(string.Equals(envApplication.Name, app.NameBeforeEdit)) + { + projEnv.StartDirtyTracking(); + envApplication.Name = app.AppName; + } + } + } + if(numOfAfectedItems > 0 && OnActivityUpdate!=null) { OnActivityUpdate();