diff --git a/DigaoDeskApp/Config/Config.cs b/DigaoDeskApp/Config/Config.cs index 80b7ee3..eff44eb 100644 --- a/DigaoDeskApp/Config/Config.cs +++ b/DigaoDeskApp/Config/Config.cs @@ -105,6 +105,11 @@ public override string ToString() return Ident; } + public CfgGitGroup Clone() + { + return (CfgGitGroup)MemberwiseClone(); + } + public void InitUUID() { UUID = Guid.NewGuid(); diff --git a/DigaoDeskApp/Config/FrmConfig.cs b/DigaoDeskApp/Config/FrmConfig.cs index ee93ddf..9f73987 100644 --- a/DigaoDeskApp/Config/FrmConfig.cs +++ b/DigaoDeskApp/Config/FrmConfig.cs @@ -141,7 +141,10 @@ private void LoadSettings() //--Repos tab _gitGroups = new(); - _gitGroups.AddRange(Vars.Config.Repos.GitGroups); + foreach (var item in Vars.Config.Repos.GitGroups) + { + _gitGroups.Add(item.Clone()); + } _bindGitGroups = new(_gitGroups); listGitGroups.DataSource = _bindGitGroups; UpdateGitGroupButtons();