Only fire TitleChanged on user driven actions
- Issue MatterHackers/MCCentral#2698 IObject3D names change unexpectedly
This commit is contained in:
parent
b0c6338cd6
commit
dfc151ee20
1 changed files with 2 additions and 1 deletions
|
|
@ -75,6 +75,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
{
|
||||
this.Text = searchPanel.Text;
|
||||
this.SetVisibility(showEditPanel: false);
|
||||
this.TitleChanged?.Invoke(this, null);
|
||||
};
|
||||
searchPanel.resetButton.Click += (s, e) =>
|
||||
{
|
||||
|
|
@ -98,6 +99,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
{
|
||||
this.Text = searchPanel.Text;
|
||||
this.SetVisibility(showEditPanel: false);
|
||||
this.TitleChanged?.Invoke(this, null);
|
||||
};
|
||||
rightPanel.AddChild(saveButton);
|
||||
|
||||
|
|
@ -112,7 +114,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
if (titleText.Text != value)
|
||||
{
|
||||
titleText.Text = value;
|
||||
TitleChanged?.Invoke(this, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue